Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux logname Command

Linux logname Command

Linux Command Reference Linux Command Reference

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

Run the logname command, and it will display the name of the current user.

Syntax

logname [--help][--version]

Parameters:

Example

Display information about the login account:



# logname 

root

Linux Command Reference Linux Command Reference