The W command displays a list of users who have logged in to the system and displays the instructions that the user is executing. Execute this command to know who is currently logged in to the system, and which programs they are executing. The Execute W command alone displays all users, and you can also specify the user name to display information about only one user.
Let's take a look at how the W command is described in the man page: "The W command is used to show which users have logged into the system and understand what they are doing." The header information for the W command is used to describe the current time, how long the system has been running, how many users are currently logged on to the system, and the average load on the system in the past 1,5,15 minutes. ”
Use of the W command:
# syntax W-[HUSFV] [user]# option-H: Do not print header information;-u: Ignores user name when displaying current process and CPU time;-S: use short output format;-F: Does not show where the user is logged in;-V: Displays version information. # parameter User: Only the specified user is displayed
Linux commands (006)--W