Skip to main content
  1. Public practice questions
  2. AZ-104 Practice Exams | Azure Administrator Associate
  3. AZ-104 Practice Exam 3

Question 4 — AZ-104 Practice Exam 3

Which Bash command shows who is currently logged in and what they are doing? (Select one answer)

  1. ps

  2. w

  3. whoami

  4. top

Correct answers

  1. w

Explanations

Correct:
w: Displays users, IPs, logins, and activities.

Wrong:
ps: Shows processes, not user logins.
whoami: Shows your own username only.
top: Shows system performance and process usage.