Print the name of the current terminal login user.
logname [OPTION]...
--help Display help information and exit.
--version Display version information and exit.
Returning 0 indicates success, returning a non-zero value indicates failure.
[root@localhost ~]# logname
root