UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: whoChapter 2
UNIX Commands
Next: Reference: whois
 

whoami

/usr/ucb/whoami

Print the effective username. This is usually the same as the standard SVR4 command logname. However, when you're running an su session as another user, whoami displays this user's name, but logname still displays your name.


Previous: Reference: whoUNIX in a Nutshell: System V EditionNext: Reference: whois
Reference: whoBook IndexReference: whois

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System


Banner.Novgorod.Ru