The output of the ‘uptime’ command will give us some useful information about how long our system has been running.
If you’re familiar with the Windows operating system then you will know how often you will need to restart your computer.
But systems that run linux can be mission-critical as most servers across the world are running linux and we can’t simply reboot or shutdown these systems on a whim.
Other than that, linux doesn’t often need to reboot and so using the ‘uptime’ command we can see just how long ago the system went down.
‘uptime’ will also give us other information such as how many users are currently logged on to the system and the load average.
Load Average
The load average is formulated by using a whole bunch of different resources such as CPU and memory.
The way that the load average is displayed will need to be memorised by you as it’s output is not very clear. We see three numbers, each number having two decimal places.
The first number indicates the load average over the last MINUTE, the second number indicates the load average over the LAST 5 MINUTES and the third number indicates the load average over the PAST 15 MINUTES.
If we notice any of these numbers starting to increase then this would indicate a problem somewhere in our processes.
We can use the past minute, 5 minutes and 15 minutes to get an idea of how often we are getting these high loads on the system.
Note that the amount of CPU’s and CPU cores in your computer would help determine the final result of the load average result.