Linuxで再起動履歴を確認する方法

Linuxで再起動履歴を確認する方法

Unix / Linuxサーバー管理者として、最後に再起動された日時がいつであるかを常に知る必要があります。 実際には、コマンドを発行することにより、システムの再起動履歴を一覧表示できます。

last reboot

出力

example@example:~$ last reboot
reboot   system boot  2.6.28-11-generi Thu Jul 16 21:42 - 23:46  (02:04)
reboot   system boot  2.6.28-11-generi Sun Jul 12 07:38 - 12:58  (05:20)
reboot   system boot  2.6.28-11-generi Sun Jul 12 07:36 - 07:37  (00:01)
reboot   system boot  2.6.28-11-generi Wed Jul  8 21:34 - 21:45  (00:11)