Latest web development tutorials

Linux logname command

Linux command Daquan Linux command Daquan

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

Linux command Daquan Linux command Daquan