Introduction
In the realm of Unix-like operating systems, the whoami command is a staple for users seeking to confirm their system identity. This simple yet powerful command returns the username associated with the current user ID, offering a clear-cut answer to the question, "Who am I in this system?"

Let's delve into the intricacies of this command, exploring its syntax, options, related commands, and its practicality in the vast ecosystem of Linux.
Also read, procedural programming
What is the whoami Command?
The whoami command is a quick way for users to determine their logged-in username. It's particularly useful in multi-user environments or when you've switched identities using the su or sudo commands. Unlike the who command, which lists all logged-in users, whoami focuses solely on the user executing the command.
Syntax with Parameters and Example
The basic syntax of the whoami command is straightforward:
whoami [OPTION]
For example, running whoami without any options will simply output the current user:
$ whoami
john_doe
Options of Whoami
The whoami command doesn't come with a plethora of options due to its specific functionality. However, it does support a few, including the --help and --version options.
--version Option
To check the version of the whoami utility, you can use the --version option:
whoami --version
This will return the version information of the whoami command, which can be useful for troubleshooting or verifying the software's authenticity.
Also see, Traceability Matrix



