Intro To 'uptime' Command In Linux
2023-05-27 - By Robert Elder
I use the 'uptime' command to see how long the computer has been running since it booted up:
uptime
14:45:04 up 5:28, 1 user, load average: 0.85, 1.13, 1.32
The 'uptime' command also shows other useful information like the current time ('14:45:04' in the output above), the number of users that are currently logged in ('1 user' in the output above), and several measures of the average CPU load ('load average: 0.85, 1.13, 1.32' in the output above).
You can use the '-p' flag to see a more clear description of how long the system has been running for:
uptime -p
up 5 hours, 29 minutes
You can use the '-s' flag to see the exact date and time when the system was started:
uptime -s
2023-05-24 09:16:20
And that's why the 'uptime' command is my favourite Linux command.
Intro To 'stty' Command In Linux
Published 2023-10-04 |
$1.00 CAD |
Intro To 'nproc' Command In Linux
Published 2023-07-15 |
Intro To 'comm' Command In Linux
Published 2023-09-06 |
How To Force The 'true' Command To Return 'false'
Published 2023-07-09 |
A Surprisingly Common Mistake Involving Wildcards & The Find Command
Published 2020-01-21 |
A Guide to Recording 660FPS Video On A $6 Raspberry Pi Camera
Published 2019-08-01 |
Intro To 'chroot' Command In Linux
Published 2023-06-23 |
Join My Mailing List Privacy Policy |
Why Bother Subscribing?
|