Skip to main content

220-1202 practice question · Operating Systems

A technician wants to quickly confirm which user account they're currently logged in as, and that account's exact…

A technician wants to quickly confirm which user account they're currently logged in as, and that account's exact username format (like DOMAIN\username), from the command line. What command shows this?

  • Awhoami
  • Bchkdsk
  • Cdiskpart
  • Drobocopy
Show the answer and explanation

Correct answer: A) whoami

Why each option is right or wrong

  • A) Correct. The whoami command reports the exact username (including domain, if applicable) of the account currently running the command-line session, a quick way to confirm identity, especially useful when working across multiple accounts or remote sessions.
  • B) Incorrect. chkdsk checks a storage volume's file system for errors; it has no relationship to reporting the current logged-in user.
  • C) Incorrect. diskpart is a command-line disk partitioning utility, unrelated to reporting the current logged-in user.
  • D) Incorrect. robocopy is a file-copying utility; it has no relationship to reporting the current logged-in user.
Exam domain
Operating Systems · 28% of 220-1202
Question type
Multiple choice (one answer)

Practise the full 220-1202 exam

This question is one of a small free sample from the CertRidge 220-1202 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with CompTIA; never copied from the real exam.