CompTIA Linux+ (XK0-004) — Question 47

An administrator is logged into a server remotely and wants to determine if the system is a VM. Which of the following commands would assist with this?

Answer options

Correct answer: D

Explanation

The command 'vmstat' is specifically designed to provide information about virtual memory statistics, including details that can indicate whether the system is running as a VM. In contrast, 'dmesg' primarily displays boot and system messages, 'ps' shows current running processes, and 'top' provides a dynamic view of system processes, none of which directly indicate virtualization status.