Linux logname command
Linux logname command displays the user name.
Logname command execution, it will display the name of the current user.
grammar
logname [--help][--version]
Parameters:
- --help online help.
- --vesion display version information.
Examples
Login account information:
# logname root