Operating Systems
Which command displays the account name of the user currently signed in to the command prompt session?
Show the answer
Correct answerC. whoami
AWhy not this: It prints the computer's name, not the user signed in.
BWhy not this: It lists the accounts on the computer without marking the current session user.
CWhy this is right: It prints the domain or computer name and the user name of the current session.
DWhy not this: It opens a dialog showing the Windows version, not the user.
whoami prints the current user's account name, usually with the domain or computer name. net user lists accounts but does not say which one is the current session.