Linux under Who commands (3)

Source: Internet
Author: User

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)

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.