What command is used to check the current users?

What command is used to check the current users?
Answer
whoami command
is used both in Unix Operating System and as well as in Windows Operating System. It is basically the concatenation of the strings “who”,”am”,”i” as whoami. It displays the username of the current user when this command is invoked. It is similar as running the id command with the options -un.
 

Tìm kiếm

Back
Top