1.who command
Used to view the current system login user, which logins are in the system, the terminal used, logon time, CPU usage, actions, and so on.
Who parameters
Common parameters and meanings are as follows:
-H: Displays the header columns for each field.
-U: Displays idle time, if the user has performed any action within the first minute, will be marked as "." If the user has not had any action for more than 24 hours, the "old" string is marked.
-Q: Displays only the account name and total number of logged-in systems.
2.W command
This command is used to view system logon information.
Also used to display user information logged on to the system, unlike who, the W command is more powerful, it can not only show who is logged on to the system, but also show the work that these users are currently doing, and the statistics are more detailed and scientific than the WHO command, The W command can be considered an enhanced version of the WHO command.
W parameter user name
Common parameters and meanings are as follows:
-F: Turn on or off to show where the user is logged into the system.
-H: The header information column for each field is not displayed.
-S: Use a concise list of formats that does not show the CPU time spent by user login times, terminal stage jobs, and programs.
This article is from "Dream Dreams" blog, please be sure to keep this source http://dreamy.blog.51cto.com/12471447/1897788
Linux under Who commands (3)