This page is READ-ONLY. It is generated from the old site.
All timestamps are relative to 2013 (when this page is generated).
If you are looking for TeX support, please go to VietTUG.org

Linux: get system uptime

hey, there are so many ways :)
Added by icy over 1 year ago  »  Votes: 2/2

How to get the system's uptime? Try any of the following commands

 1 $ uptime
 2  16:25:59 up  7:37,  3 users,  load average: 0.43, 0.66, 0.58
 3 
 4 $ w |head -1
 5  16:29:50 up  7:41,  3 users,  load average: 0.04, 0.37, 0.48
 6 
 7 $ cat /proc/uptime
 8 27910.58 20588.15
 9 
10 $ ps -p 1 -o "%t" 
11     ELAPSED
12    07:48:15
13 
14 $ ps -p 1 -o etime
15     ELAPSED
16    07:48:22

More ? Please wait ... ;)


Comments