English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux logname command

Linux Command大全

The Linux logname command is used to display the user name.

Execute the logname command, it will display the current user's name.

Syntax

logname [--help][--version]

Parameter:

  • --help  Online help.
  • --vesion  Display version information.

Online Examples

Display login account information:

# logname 
root

Linux Command大全