Question 4 — AZ-104 Practice Exam 3
Which Bash command shows who is currently logged in and what they are doing? (Select one answer)
ps
w
whoami
top
Correct answers
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.