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;