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)
Related 220-1202 questions
- A technician wants a single command that outputs a comprehensive report of a PC's OS version, install date, hotfixes…Operating Systems
- A technician needs to force-terminate a specific unresponsive process by its exact executable name, scripted as part of…Operating Systems
- A technician wants to export a specific Windows event log to a file from the command line, as part of an automated…Operating Systems
- A technician wants to verify exactly which Group Policy settings are currently being applied to a specific PC (and from…Operating Systems
All 67 free 220-1202 questions by domain · 15 sample questions on one page
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.