CompTIA A+ Core 2 (220-1202) — Question 126

A Windows user is having trouble accessing a fileshare. The technician would like to confirm the username that the machine is currently logged in to. Which of the following should the technician use?

Answer options

Correct answer: C

Explanation

The correct command is 'whoami', which displays the username of the currently logged-in user. The 'net user' command provides information about user accounts but not specifically the one logged in. 'tracert' is used for network route tracing, while 'hostname' returns the name of the computer, not the username.