Differences between linux who am I and whoami

Source: Internet
Author: User
Tags exit in

Differences between linux who am I and whoami

Who am I displays the actual user name, that is, the user ID when the user logs on. This command is equivalent to who-m.

Whoami displays the valid user ID, the user name of the current "Operation user.

In most cases, the actual user ID is the same as the valid user ID.

Who-q is used to display the number of currently logged-on users.

If you think the output information of who is obscure, you can use who-H to output the information, so that you can add the column name to each column for reading.

Articles you may be interested in
  • Differences and usage of select into from and insert into select
  • Differences between window. navigate and window. location. href
  • Use break, continue, goto, return, and exit in multiple loops in PHP
  • Install and use Sphinx in windows [Chinese full-text search is supported]
  • Google map infowindow instance sharing
  • How to accelerate windows 7 System Optimization
  • Differences in the usage of tinyint, smallint, int, and bigint types in mysql
  • Detailed explanation of the difference between display: inline; and float: left;

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.