SOFTELメモ Developer's blog

会社概要 ブログ 調査依頼 採用情報 ...
技術者募集中

【linux】 再起動の履歴が見たい

問題

Linuxで再起動の履歴は確認できますか。

答え

以下のコマンドで確認できる

# last reboot
reboot   system boot  2.6.18-164.el5xe Wed Jun  4 04:16          (13:51)
reboot   system boot  2.6.18-164.el5xe Wed Jun  4 03:39          (00:35)
reboot   system boot  2.6.18-164.el5xe Wed Jun  4 11:04          (00:34)
reboot   system boot  2.6.18-164.el5xe Wed Oct 17 03:56         (595+07:43)
reboot   system boot  2.6.18-164.el5xe Wed May 18 17:50         (517+09:39)
reboot   system boot  2.6.18-164.el5xe Wed May 18 17:46          (00:03)
reboot   system boot  2.6.18-164.el5xe Wed May 18 17:02          (00:47)
reboot   system boot  2.6.18-164.el5xe Wed May 18 16:59          (00:01)

/var/log/messages にもログはあるので、shutdownを検索する手もある。

関連するメモ

コメント