Unix Commands

whoami is a Unix command to print the username associated with the current effective user ID. This command is helpful for DBAs/Admins working on multiple instances to know current username they are logged in.

whoami is not shell built-in. Executable location is /usr/bin

whoami Syntax

whoami [OPTION]…


Below options are supported by whoami

No option

prints current username

$ whoami

display this help about the whoami and exit

$ whoami --help

output version information and exit

$ whoami --version



Related Post