Bird
0
0

What does the whoami command display when run in a Linux terminal?

easy📝 Conceptual Q11 of 15
Linux CLI - Users and Groups
What does the whoami command display when run in a Linux terminal?
AThe current logged-in username
BThe current directory path
CThe list of running processes
DThe system's IP address
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of whoami

    The whoami command is designed to show the username of the current user logged into the shell.
  2. Step 2: Compare with other options

    Options A, B, and C describe other commands or outputs unrelated to whoami.
  3. Final Answer:

    The current logged-in username -> Option A
  4. Quick Check:

    whoami = username [OK]
Quick Trick: Remember: whoami = "Who am I?" shows your username [OK]
Common Mistakes:
  • Confusing whoami with pwd (current directory)
  • Thinking whoami shows system info
  • Mixing up with commands showing processes

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes