Whoami
From FreeBSDwiki
(Difference between revisions)
m (Reverted edits by CalatAbasp (Talk); changed back to last version by Jimbo) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[whoami]] will display who you're currently logged in as; if I log in as user '''dave''' but then [[su]] to [[root]], I'll get the following results. Compare to [[who]]. | [[whoami]] will display who you're currently logged in as; if I log in as user '''dave''' but then [[su]] to [[root]], I'll get the following results. Compare to [[who]]. | ||
− | samizdata# whoami | + | samizdata# '''whoami''' |
root | root | ||
− | samizdata# who am i | + | samizdata# '''who am i''' |
dave ttyp0 Oct 6 14:21 (10.67.1.108) | dave ttyp0 Oct 6 14:21 (10.67.1.108) | ||
− | + | ||
+ | [[Category:System Commands]] |
Latest revision as of 17:31, 31 December 2007
whoami will display who you're currently logged in as; if I log in as user dave but then su to root, I'll get the following results. Compare to who.
samizdata# whoami root samizdata# who am i dave ttyp0 Oct 6 14:21 (10.67.1.108)