exam questions

Exam XK0-004 All Questions

View all questions & answers for the XK0-004 exam

Exam XK0-004 topic 1 question 132 discussion

Actual exam question from CompTIA's XK0-004
Question #: 132
Topic #: 1
[All XK0-004 Questions]

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?

  • A. dmesg
  • B. ps
  • C. top
  • D. vmstat
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Reference:
https://ostechnix.com/check-linux-system-physical-virtual-machine/

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
igm
Highly Voted 4 years, 5 months ago
It is A sudo dmesg | grep -i hypervisor [ 0.000000] Hypervisor detected: VMware
upvoted 12 times
betty_boop
4 years, 5 months ago
yeah, it's dmesg. Vmstat is not even in the link they gave as a reference. Dmesg is.
upvoted 2 times
...
...
DiaaEmara
Most Recent 2 years, 5 months ago
We can find the system's type using dmesg utility. dmesg is used to examine or control the kernel ring buffer. To check if your Linux system is physical or virtual, simply run: $ sudo dmesg | grep "Hypervisor detected" If your system is physical, you will not see any output. If your system is virtual machine, then you will see an output something like below. [ 0.000000] Hypervisor detected: KVM
upvoted 2 times
...
examtopics_htc
2 years, 6 months ago
Selected Answer: A
Dmesg for sure, even the provided link agrees.
upvoted 2 times
...
CarlosC
3 years ago
The link even shows that dmesg is a method.
upvoted 1 times
...
user5x
3 years, 11 months ago
vmstat = Virtual Memory Statistics, not 'Virtual Machine' status, as one might expect. You can use the command @igm displayed, or: sudo dmesg | grep "DMI" ... effectively producing the same results from the DMESG log (Ring Buffer) ...
upvoted 1 times
...
shahin_am2
4 years ago
There is even no "vmstat" in the link provided as answer!! 😂
upvoted 1 times
...
Thrallez
4 years, 2 months ago
It's A - that URL points to document that does not even mention vmstat - and vmstat memory, swap, pageins....
upvoted 3 times
...
xx13
4 years, 3 months ago
vmstat is used to view memory statistics
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago