Linux Uptime Command - Find How Long Your System Been Running

November 24, 2013 | By
| 1 Reply More

linux uptime command

Information about how long the system has been running may not critical for some people. But for server administrators, it is critical. Servers which running mission critical application must be running as long as possible. Sometimes it must be zero-downtime. So, how can we know information about it?

On Linux operating system, we can use uptime command. You don’t need root privileges to run this command. This command also already installed on Linux system by default.

The syntax is like this :

$ uptime

You may see an output like this :

Figure 1

This information is provided in /proc/uptime file. Even the file is text based, but it’s a raw information which is not directly human-readable. That’s why we need uptime command to translate it.

Here's how to read the information provided by uptime :

System Time

You see at the Figure 1 above, the first information on the left side is 14:04:39. It shows you the system time in 24 hours format.

System Uptime

The second information is Up 1004 days, 12:20. It give you a timeframe how long the system has been running. From the Figure 1, it shows you that the system has been running for 1004 days and 12 hours - 20 minutes. If the system has not pass 24 hours then it will show you only hours and / or minutes timeframe. Take a look at Figure 2 and Figure 3 below. When the system is restarted then the counter will be reset to zero.

Figure 2

Figure 3

Numbers of Users Logged In

The third information is uptime shows you numbers of users logged in. Figure 1 show you that there is 1 user logged at that time. When there is multiple user logged in, uptime will tell you the numbers.

Load Average

The last information is about the average load of the system. From the Figure 1 again you see numbers 0.25, 0.25, 0.19. The two decimal point is translated as a percentage. 0.25 means 25% and 0.19 means 19%.

While the sequence 0.25, 0.25, 0.19 represent for the past 1 minutes, 5 minutes and 15 minutes. The lower numbers you get mean the better your system will perform.

That’s the usage of the uptime command in daily used. For more detailed information, please refer to uptime manual page by typing man uptime in your Linux console.

Filed Under : LINUX COMMANDS, LINUX HOWTO

Free Linux Ebook to Download

Comments (1)

Trackback URL | Comments RSS Feed

  1. D. Sportello says:

    uptime doesn't give much information beyond the actual boot time. For those who wants a bit more about the life of the system, try tuptime command.

Leave a Reply

Commenting Policy:
Promotion of your products ? Comment gets deleted.
All comments are subject to moderation.