Detecting System Restart or Shutdown?

Alan Pope popey at ubuntu.com
Wed Apr 13 10:49:50 UTC 2011


On 13 April 2011 11:41, waqar afridi <afridi.waqar at gmail.com> wrote:
> Is there any method through which I can Detect that the System was recently
> shutdown or Restarted?

"uptime" will tell you how long it's been up.

alan at bishop:~$ uptime
 11:49:12 up 56 days, 13:50,  5 users,  load average: 0.19, 0.24, 0.26

Al.




More information about the ubuntu-users mailing list