[root@localhost log]# ll bo*
-rw------- 1 root root 0 12月 3 04:02 boot.log
-rw------- 1 root root 0 11月 26 04:02 boot.log.1
-rw------- 1 root root 7341 11月 24 13:59 boot.log.2
-rw------- 1 root root 0 11月 12 04:02 boot.log.3
-rw------- 1 root root 0 11月 5 04:02 boot.log.4
[root@localhost log]# pwd
/var/log
[root@RHEL4 log]# grep halt messages
Nov 15 14:12:47 RHEL4 shutdown: shutting down for system halt
[root@RHEL4 log]# grep reboot messages
Nov 1 00:12:44 RHEL4 shutdown: shutting down for system reboot
Nov 1 01:46:02 RHEL4 shutdown: shutting down for system reboot
Nov 1 11:33:48 RHEL4 shutdown: shutting down for system reboot
last
last | grep reboot
last | grep shutdown
阅读(2513) | 评论(0) | 转发(0) |