Linux command-W: Displays the logged-on user and the currently executing task

Source: Internet
Author: User

Command format

W-[HUSFV] [user]

Command parameters

-H
Do not print header information

-U
Ignores the user name when the current process and CPU time are listed, which is primarily the case after the SU command is executed.

-S
Use short format, do not print [email protected], JCPU and PCPU information

-F
Toggle display from Item information

-V
Display version Information

Instance

A) displays user information for the currently logged on system

W 23:06:04 up 1:15, 4 users, Load average:0.00, 0.01, 0.05USER     TTY      from              [email protected]   IDL E   jcpu   PCPU whathuey     pts/1    192.168.1.105    21:52    6.00s  0.52s  0.00s Wsugar    PTS/2    192.168.1.105    21:56   20.00s  0.47s  0.47s-bash

Message meaning

The fields in the top message are interpreted as:

Field Meaning
14:21:33 Current system time
Up 1:15 Uptime (uptime), the total number of times calculated from the last start of the machine.
2 users There are 2 users logged in
Load average:0.27, 0.33, 0.34 Load average is the number of processes waiting to run, that is, the number of processes in the running state that share CPU resources. The three values shown correspond to different time periods. The first corresponds to the mean value of the first 60 seconds, the second corresponds to the mean of the first 5 minutes, and the last 15 minutes of the mean value. The average value is less than 1.0 the machine is not busy.

What the column headings mean:

Title Meaning
USER Login User's account
Tty User-Logged Control terminal
From Where the user logs on
[Email protected] time when the user logs on to the system
IDLE User idle time, timed from the end of the user's last task
Jcpu The CPU time spent by all the processes connected to TTY, excluding the job time of the previous background task, but including the job time of the current background task
PCPU CPU time that is consumed by the current process execution
What Tasks currently performed by the user

Related commands

Who-show logged-on user status

Linux command-W: Displays the logged-on user and the currently executing task

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.