Linux Comm Logname
# Linux logname Command
[ Linux Command Manual](#)
The Linux logname command is used to display the user name.
Executing the logname command will display the name of the current user.
### Syntax
logname
**Parameters**:
* --help Online help.
* --version Display version information.
### Example
Display the login account information:
# logname root
[ Linux Command Manual](#)
YouTip