Whoami command

From Linux Shell Scripting Tutorial - A Beginner's handbook
Revision as of 22:50, 29 March 2016 by Admin (talk | contribs) (Text replacement - "</source>" to "</syntaxhighlight>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  • The whoami command displays the user login name of the current session.
  • Type the following command at a shell promot:

Sample outputs:

  • The id command provides the same information on screen:
id -un