uptime command in Linux with Examples

uptime command is a measure of system reliability, expressed as the percentage of time a machine, typically a computer.

The uptime command in Linux is used to display how long the system has been running, as well as the average system load over a certain period of time.

Here’s how you can use the uptime command:

uptime command in Linux with Examples

On the man page, the describes it

  • uptime – Tell how long the system has been running.
  • man uptime – More details information.

Uptime command in Linux with Examples

$ uptime

Executing the uptime command without any options will provide a summary of system uptime and load averages. The output will include the following information:

  1. The current time.
  2. How long the system has been running?
  3. The number of logged-in users.
  4. The system load averages for the past 1, 5, and 15 minutes.

Here’s an example output of the uptime command in Linux:

 19:32:51 up  1:23,  3 users,  load average: 0.10, 0.12, 0.15

In this example, the system has been running for 1 hour and 23 minutes. There are three logged-in users. The load averages represent the system’s workload over the past 1, 5, and 15 minutes, respectively. In this case, the load averages are 0.10, 0.12, and 0.15, indicating a relatively low system load.

Conclusion

uptime command is a simple command in Linux. It is the most popular in-use terminal Linux for Telling how long the system has been running.

The uptime the command does not offer additional options, as it is designed to provide a simple overview of system uptime and load averages. For more detailed information and system statistics, you can explore other commands like top, htop, or specialized monitoring tools.

Thank you for reading the DevopsRoles page!

About HuuPV

My name is Huu. I love technology and especially Devops Skill such as Docker, vagrant, git so forth. I likes open-sources. so I created DevopsRoles.com site to share the knowledge that I have learned. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.