logname Linux Commands

What is Linux logname Command?

Explanation

logname COMMAND:

logname command displays the login name of the current process.

SYNTAX :


logname [OPTION]

OPTIONS:


--help Displays help and exit.
--version Displays version information and exit.

EXAMPLE:


  1. logname
    Output:
    kumar
  2. In the above example, the current process's login name is 'kumar', which is displayed.

Ask Questions

Ask Question