Query system running time of linux command - uptime Query system running time of linux command - uptime

Query system running time of linux command -uptime

You can query how long the server has been running by using the uptime command, which is installed by default.


This information is stored in the /proc/uptime file. Although it is stored in text, the data cannot be displayed directly, which requires us to use the uptime command to translate it:

[System time]
  In the above picture, the first message from the left at 17:03:55 is the current system time, which is output in 24-hour format.

[System running time]
  In the above figure, the second message from the left is up 161 days, 21:58, which is the cumulative running time of the system. The image above shows that the system has been running for 161 days, 21 hours and 58 minutes.
  If the cumulative running time of the system does not exceed 24 hours, only hours and minutes will be displayed here, or only minutes will be displayed.
  It will be cleared when the system restarts.

【Number of logged-in users】In the
  above figure, the third message from the left shows the number of logged-in users.
  
【Average Load】
  The last piece of information is the average load of the system. It is divided into three parts, which respectively represent the average load of the system in the past 1 minute, 5 minutes, and 15 minutes.
  Lower load means better performance of your system.


Reprinted from http://os.51cto.com/art/201312/420840.htm

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325735046&siteId=291194637