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

Contents

whoami Syntax

whoami [OPTION]…

Options

Below options are supported by whoami

No option

prints current username

$ whoami
atech
 –help

display this help about the whoami and exit

$ whoami --help
 –version 

output version information and exit

$ whoami --version

 

 

Related Post