I periodically check on my grandmother’s XP-look-alike-edition of Ubuntu to see how it’s doing. While the general
top command can tell me what she has running, it doesn’t tell me how long the computer has been running. Luckily, there’s a command for that.
While there are other methods of getting the system uptime, I find this method by far the easiest. Simply enter
uptime into your terminal and out pops something similar to the following:
19:41:33 up 9 days, 4:35, 2 users, load average: 1.00, 0.45, 0.26
The output essentially tells you the time and the number of days, or the next smallest unit in the case it’s been less than a day, and the number of users logged in and finally, the average load as you would normally see from
uptime is a nice and easy command to do something specific. No hunting with grep necessary.