Linux whoami command
Linux whoami command is used to get the current logged-in username. This command is most helpful with Shell scripting to find if the current user is root or not.
Example:
Output:
rahul
Linux whoami command
Linux whoami command is used to get the current logged-in username. This command is most helpful with Shell scripting to find if the current user is root or not.
Example:
$ whoami
Output:
0 Comments
CAN FEEDBACK
Emoji