I. INTRODUCTION of commands
The uptime command in a Linux system is primarily used to obtain information such as the host runtime and query Linux system load.
The uptime command can show how long the system has been running, showing the current time, the system has run, the number of users currently logged on, the system's average load in the last 1 minutes, 5 minutes, and 15 minutes. Uptime command is very simple to use, directly enter the uptime.
Second, examples
[[email protected] ~]$ uptime 23:32:08 up 6 min, 1 user, load average: 0.00, 0.07, 0.05
In the information shown above, 23:32:08 indicates the current time of the system, and up 6 min indicates that the host has elapsed time. 1 user indicates the number of users connected, which is the total number of connections rather than the number of users (one user can create multiple connections). Load average represents the average system load, which counts the average system load for the last 1 minutes, 5 minutes, and 15 minutes.
Note: The average system load is the average number of processes running in a queue during a specific time interval. For a single-core CPU, a load of less than 3 indicates that the current system is performing well; 3~10 indicates the need for attention, the system load may be too large, the corresponding optimization needs to be done, and a greater than 10 indicates a serious problem with the performance. Another 15 minutes of system load need to focus on the reference and as the current operating conditions of the load basis.
Linux commands (19) View system load uptime