Whoami command
From Linux Shell Scripting Tutorial - A Beginner's handbook
- The whoami command displays the user login name of the current session.
- Type the following command at a shell promot:
whoamiSample outputs:
vivek
- The id command provides the same information on screen:
id -un