UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: loginChapter 2
Unix Commands
Next: Reference: look
 

logname

logname

Display your login name. SVR4 prints the value of the LOGNAME environment variable located in /etc/profile. Solaris looks the user up in /var/adm/utmp, which is where information is kept about logged-in users. See also whoami.


Previous: Reference: loginUNIX in a Nutshell: System V EditionNext: Reference: look
Reference: loginBook IndexReference: look

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