Name
logname
Synopsis
logname [option
]
Consult /var/run/utmp for user’s login name. If found, print it; otherwise, exit with an error message.
Options
- --help
Print a help message and then exit.
- --version
Print version information and then exit.
Get Linux in a Nutshell, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.