Multiple choice technology operating systems

With what command you can see your user name?

  1. pwd

  2. me

  3. i

  4. whoami

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

The whoami command displays the username of the currently logged-in user. pwd (print working directory) shows the current directory path, while 'me' and 'i' are not valid Unix/Linux commands.

AI explanation

The command whoami prints the effective username of the current shell session — exactly what the question asks for. pwd (print working directory) reports the current directory path, not a username. me and i are not standard shell commands at all; they don't exist as utilities on Unix/Linux or Windows systems. whoami is the standard, portable answer across POSIX systems and is even available on Windows via cmd/PowerShell.