Thursday, July 14, 2011

Linux Administration: check the server last boot, uptime and the start up and shutdown log

1) Running "uptime" which will show you how long it has been up. You can figure out last boot from that.

2) who -b (doesn't work in some distros) will give you actual date/time of last boot.

3) last -x will show you what /var/log/wtmp recorded for shutdowns. (Note you may have to specify last -x -f /var/log/wtmp.1 or something similar to see older logs.)
 

No comments:

Post a Comment