uptime Commands

uptime command tells your system starts up (running) how long.

grammar:

uptime [options]

man page of this tool is to say:

uptime displays the following information on a single line: the current time, how long the system has been running, how many users currently logged on, before the 1 , 5 , 15 average system load minutes.

These questions form the following cases should give you a better understanding of the uptime command.

 

uptime basis of usage is very simple --- just type the command name and press Enter on the line.

This is the output:

Here, the first term is the current time, up indicates that the system is running: 5.53 is the total time the system starts, and finally load load information systems.

If you want to learn more, here is the uptime man page description of the last piece of information about:

The system load is the average number of runs in a non-interruptible runnable or uninterruptable state of the process. It can process running either are using the CPU or waiting to use the CPU. The process can not be interrupted state is waiting for some the I / O access, listed as waiting for disk IO. 
There are an average of three time intervals. Meaning the average load of the CPU depending on the number of different systems, load 1 for only a single CPU systems means that the load is full, and to have a 4 system means that the CPU is 75 % of the time where it is idle.

 

If you just want to know how long the system is running, and you want a more user-friendly format to display, you can use the -p items

uptime -p

This is the output:

 

You can also specify the time and date display system uptime started running. It is to use the -s command entry.

uptime -s

This is the output:

 

-V obtain version information, -h get help.

uptime -V
uptime -h

This is the output:

 

As you can see, uptime command is easy to understand to use. It does not provide a lot of functionality (command item rarely). Here we have covered all of its functions, and therefore only need to practice these options you can use it in their daily work. If desired, you can also see its man page [1].

 

Guess you like

Origin www.cnblogs.com/lwl117/p/11127580.html