Multiple choice technology

The command "whoami" is used to

  1. Returns error.

  2. Lists your last logins.

  3. Returns your username.

  4. Tells you where you currently are.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The whoami command in Unix/Linux displays the username of the currently logged-in user. It's a simple command that returns the effective user ID name. This is different from 'who' (shows all logged-in users) or 'w' (shows who is logged in and what they're doing).