Closed Captioning Closed captioning available on our YouTube channel

How to use the uptime command: 2-Minute Linux Tips

Network World | Jul 10, 2020

In this Linux tip, learn how to use the uptime command. It tells us how long the system has been up and running – and provides some additional information as well.

Copyright © 2020 IDG Communications, Inc.

Similar
Hi, this is Sandra Henry-Stocker, author of the “Unix as a Second Language” blog on NetworkWorld.
In this Linux tip, we’re going to look at the uptime command that tells us how long the system has been up and running – and provides some additional information as well.
Here’s an example:
In this output, we can see how long the system has been up – in this case, more than 7 1/2 days. We also see the load averages which tell us how hard the system is working. The three numbers indicate the number of processes that are using or waiting to use the CPU. If the numbers are significantly greater than 1, the system might be having trouble keeping up with the work that it is being asked to do.
The three load averages report the load over a 1-minute, 5-minute and 15-minute time period.
Notice that the uptime command shows us how many users are currently logged in. If there’s only one, it’s you! If there are quite a few users logged in, that probably explains any higher than usual load you might be seeing, although those numbers more likely reflect applications and processes that are running independently of your users.
A couple useful options include:
It shows how long the system has been up in a “pretty” format.
The uptime command is a good way to see how long the system has been up and how much load it is managing.
$ uptime -s
Shows the time that the system last booted – “up since” time.
That’s your Linux tip for the uptime command.
If you have questions or would like to suggest a topic, please add a comment below. And don’t forget to subscribe to the IDG Tech(talk) channel on YouTube.
If you liked this video, please hit the like and share buttons. For more Linux tips, be sure to follow us on Facebook, YouTube and NetworkWorld.com.

Popular
Featured videos from IDG.tv