Linux system management command ------ w

Source: Internet
Author: User
Linux system management command ------ the wLinux system administrator sometimes wants to know what the user on the machine he manages is doing, and the Linux management command can help us complete this job, we can use the Linux Management Command w to implement this specific work, reflecting the text after running the command... linux system management command ------ w Linux system administrator sometimes wants to know what the user on the machine he manages is doing, and the Linux management command can help us do this kind of work, we can use the Linux Management Command w to implement this specific work, reflecting the text terminal after running the command. this command can tell you the following information. Line 1: Basic information about the current operation of the system. In the first line, there are a total of three fields that mainly tell the administrator about the current basic information. The first field indicates the time information. The previous 09:52:36 indicates the current system time. The following up 14 days indicates that the last system restart has taken nearly 14 days. With this parameter, the administrator can understand the operating duration of the Linux server. This can help administrators with system maintenance. The following indicates the specific time when the server was last started. If the administrator suspects that the server was accidentally restarted, you can confirm with this parameter. The second field shows the total number of logon users. Note that in Linux, you can log on to the same account repeatedly, so you will see the duplicate account name. Generally, after a user logs out, the total number of users here is updated in a timely manner. The third field displays the current average load indication of the system. The preceding three values indicate the average load of the system in the past minute, five minutes, or ten minutes. Generally, the closer the value is to 0, it indicates the system load at the end of the month, and the better performance. Row 2: eight fields show the user's details. The first field "user" shows the username used for logon. Note that Linux is different from Microsoft. Different users can log on to the same account. Therefore, if two accounts with the same name are displayed here, it is not a strange thing. The second field is TTY, indicating the terminal code that the user logs on. This parameter is of great value to administrators. He can tell the administrator how the current user logs on to the system. The terminal code varies depending on the user login form. Here, the TTY1-TTY6 represents the Virtual Console from 1 to 6 on the local machine. PTS indicates that the user logs in remotely. If the number is: 0, the user logs on to the system from XWindow. As shown in, the current user logs on to the Linux operating system through remote access. The third field, FROM, shows where the current user logs on to the system. If this field displays the "-" symbol, it indicates that the current user is logged on from the local machine. If the IP address or host name is displayed, the current user is logged on remotely. Sometimes administrators force the user to kill the user out of system maintenance or other considerations. The administrator needs to know the IP address used by the current user. Then you can use this command to obtain it. The fourth field Login indicates the logon time of the current user. Note that the duration of logon to the system is not displayed here. It is a time point, indicating the time when the user logs on to the system. This parameter often has little reference value. The fifth field is IDEL. It indicates the idle time after the user logs on to the system. This field is a time period, or a timer. As long as the user starts to work again, the timer will Re-Timer. The sixth field is JCPU, which indicates the CPU time consumed when all the related programs of the terminal are executed. Note that the time here is not accumulated, but the system will stop timing every time the first paragraph is taken. After starting a new job, the timer will be re-executed here. That is to say, it refers to the CPU time occupied by the application from the beginning to the end. The seventh field should be combined with the eighth field. WHAT field indicates WHAT the current user is doing. If the user is executing a program, the name of the program is displayed. If the user is operating on a command in common text mode, the name of the user's environment is displayed here. PCPU indicates the time required to execute the program in WHAT field.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.