logname

Print the name of the current terminal login user.

Summary

logname [OPTION]...

The main purpose

Options

--help Display help information and exit.
--version Display version information and exit.

return value

Returning 0 indicates success, returning a non-zero value indicates failure.

example

[root@localhost ~]# logname
root

Notice