Home » 2014 » March » 12 » uptime command in Linux

7:01 PM
uptime command in Linux
 

If you want to find the duration of time a linux server is up or active, you can use uptime command
    uptime - tell how long the system has been running

Format

       uptime [OPTION]... [ FILE ]

DESCRIPTION

       Print  the current time, the length of time the system has been up, the number of users on the system, and the average number of jobs in the run queue over the last 1, 5 and 15 minutes.  If FILE is not specified, use /var/run/utmp.  /var/log/wtmp as FILE is common.

Prompt> hostname
DemoServer

Prompt:> uptime
 12:24pm  up 346 days  1:14,  3 users,  load average: 0.06, 0.07, 0.08

So the above command will tell that the server DemoServer is UP by 346 days  1:14 hrs having the average load of jobs as

0.06, 0.07, 0.08  in last 1, 5 and 15 minutes.
 
 

Category: Open System-Linux | Views: 1570 | Added by: shanky | Tags: system information, average load, uptime, how long system running | Rating: 0.0/0

Related blogs


You may also like to see:


[2016-01-23][Open System-Linux]
Some useful examples of netstat command in Linux for network statistics
[2017-08-13][Open System-Linux]
Perl trick to remove Ctrl - M charater from a file
[2014-12-28][Open System-Linux]
Shift command with examples
[2015-03-18][Open System-Linux]
What is runlevel in Linux?
[2014-03-25][Open System-Linux]
Create a new user in Linux system: useradd

Total comments: 0
avatar