CompTIA Linux+ (XK0-004) — Question 217

A systems administrator logs into a Linux server and must identify whether the server is a physical or virtual machine.
Which of the following commands should the administrator run?

Answer options

Correct answer: C

Explanation

The correct command is 'dmidecode', as it provides detailed information about the hardware, including whether the server is physical or virtual. The other commands, while useful for different diagnostics, do not specifically indicate the virtualization status of the machine.