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:
-
logname
Output:
kumar
In the above example, the current process's login name is 'kumar', which is displayed.