Linux daily Management common command--w
[Email protected] ~]# W
14:45:41 up 2 min, 2 users, Load average:0.10, 0.10, 0.04
USER TTY from [email protected] IDLE jcpu PCPU
Root tty1-14:44 54.00s 0.02s 0.02s-bash
Root pts/0 192.168.100.110 14:45 0.00s 0.02s 0.00s W
As follows:
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/91/72/wKiom1j1_1yBfSNOAAAU8yGW8VQ953.png "title=" 11. PNG "alt=" Wkiom1j1_1ybfsnoaaau8ygw8vq953.png "/>
For the W This command is detailed:
The first line starts from left to right and displays the following information:
(1) 14:45:41 indicates the current time of the system;
(2) Up 2 min indicates the time that the system is running after booting;
(3) 2 users indicates the total number of users logged in at the current user;
Note: In a Linux system, the same account can be repeatedly logged in, so you will see duplicate account names. Typically, the total number of users here is updated as soon as the user logs off.
(4) Load average:0.10, 0.10, 0.04 indicates the current average load indication of the displayed system. The above three values indicate the average load level of the system over the past minute, five minutes, and 10 minutes. Typically, the closer to 0 means the end of the load for the system, and the better performance.
All lines starting from the second line tell us: The user name that is currently logged in and its login address, and so on.
(1) User name indicates the username used by the current user login;
(2) TTY indicates the terminal code of the user's login; This parameter is valuable for administrators. He can tell the administrator how the current user is logged into the system by what means. Depending on the user login form, the terminal code is also different. Among them, Tty1-tty6 represents the Virtual Console of 1 to 6th on this machine respectively. PTS indicates that the user is logged on remotely. If the number is: 0, the user logs on to the system from Xwindow. As shown, this means that the current user is logged on to the Linux operating system via remote access.
(3) from indicates where the current user is logged on to the system, and if the field displays a "-" symbol, the current user is logged in from the local computer. If an IP address or host name is displayed, the current user is logged on remotely.
(4) [email protected] indicates when the current user logged in. Note that this does not show the duration of the current user's logon system. It is a point in time that represents the moment the user logs on to the system. This parameter often does not have much reference price value.
(5) idle indicates how long the user has not been active under the current terminal (not running any commands);
(6) JCPU indicates the CPU time occupied by the process under the current terminal;
(7) PCPU indicates that the current BASH/W This command consumes CPU time, that is, PCPU is the time spent executing the program in the What field;
(8) What indicates what the current user is doing. If the user is executing a program, the name of the user execution program is displayed here. If the user is working on a command that performs general text mode, the user's environment name is displayed here.
Extended:
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/91/72/wKioL1j2Cb2QtO3RAACljwh_-oY830.png "title=" 11. PNG "alt=" Wkiol1j2cb2qto3raacljwh_-oy830.png "/>
Note: from online resources.
Explain the Red line section:
The up of the following days indicates that the last system restart has been in the past for a total of 14 day. With this parameter, the administrator can understand the duration of the Linux server's operation. This can help the Administrator with system maintenance. The next 1:45 indicates the exact time the server was last started. This parameter can be used to confirm if the administrator suspects that the server has been restarted unexpectedly.
This article is from the "Hand of the Paladin Control" blog, please make sure to keep this source http://wutengfei.blog.51cto.com/10942117/1917169
Linux daily Management common command--w