home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


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: login UNIX in a Nutshell: System V Edition Next: Reference: look
Reference: login Book Index Reference: 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