Generally, you will find that the user name has been displayed at the console command prompt. However, some shells do not display your username by default, such as csh. Therefore, this command should be used on shell terminals that cannot display
WhoAmI
Function Description:
Show user Name
Grammar:
WhoAmI
Supplementary Note:
Display the user name of oneself, this instruction is equivalent to execute id-un instruction
The difference between WhoAmI and who am I
The WHO command focuses
In Linux, the WHO series commands exist who/whoami/who am I.First of all, I have an ordinary user guixian001 system. Then execute the command whoami/who am i/who to execute the command separately. As follows:650) this.width=650; "src="
WhoAmIFunction Description:Show user NameGrammar:WhoAmIAdditional notes:Display its own user name, this directive is equivalent to executing the id-un instructionThe difference between WhoAmI and who am I The WHO command is focused on seeing which
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.
Several common small commands for viewing logged-in users:1, W : Displays the currently logged on user and what they are doing[Email protected] usr]# W10:02:06 up 2 days, 2:06, 1 user, Load average:0.00, 0.00, 0.00USER TTY from [email protected]
File system access list:Facl:filesystem Access Control ListSave additional access control permissions with file extensionsOwner>group>otherOwern>facl,user>group>facl,group>otherSetfacl-M: SetU:uid:permG:gid:perm-X: CancelU:uidG:gid[Email protected] ~
The WHO, W, and WhoAmI commands can display logged-in user names, but usage and usage effects vary, so let's look at the usage of these three commands and their differences.1. Who command: Displays user information that is currently logged into the
W who whoami last Lastb lastlog basename sleep hostname mail################################################W.H.O.WhoAmILast: Displays the/var/log/wtmp file, showing the user login history and System restart historyLastb:/var/log/btmp file that
AWhoAmI is a fairly simple command.Two"Who": Print who's currently logged in============================================The ' Who ' prints information is about the users who is currently logged on.Synopsis:' Who ' [OPTION] [FILE] [Am I]If given no
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.