How can I tell how long my computer has been running, or at what time it booted last
I googled and found a command entitled uptime, which is supposed to tell me, but all it seems to tell is the current time (as you will see the time it returns changes as the current time changes).
Code:
root [ ~ ]# uptime |
Code:
last reboot |
the uptime shows a rough value
Quote:
Quote:
that means your system has been up from 1 hour 28 mins Mine is Quote:
|
uptime is already telling you that information in the 2nd column. The uptime was 1 hour and 16 minutes the first time you ran it, 1:28 the last time. On my machine:
Code:
$ uptime |
And mine:
Code:
# uptime There are many people that make linux machines server, and actually keep them ongoing, so uptime is a useful function. Ted |
Quote:
heres mine: Code:
[schneidz@hyper ~]$ w |
Quote:
|
Quote:
cut -d" " -f1 /proc/uptime` that is number of seconds since boot. |
All times are GMT -5. The time now is 09:19 AM. |