Easy Tutorial
❮ Linux Shell Array Linux Comm Xargs ❯

Linux logname Command

Linux Command Manual

The Linux logname command is used to display the username.

When the logname command is executed, it shows the name of the current user.

Syntax

logname [--help][--version]

Parameters:

Example

Display the login account information:

# logname
root

Linux Command Manual

❮ Linux Shell Array Linux Comm Xargs ❯