whoami

Print the name corresponding to the currently valid user ID

Summary

whoami [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 ~]# whoami
root

Notice