XK0-006 practice question 8 of 15
Which of the following commands should an administrator use to see a full hardware inventory of a Linux system?
Full set: 149 questionsThe dmidecode command is a tool for dumping a computer's DMI (Desktop Management Interface) table contents in a human-readable format. This table contains a detailed description of the system's hardware components, including the BIOS, system manufacturer, processor, memory modules, chassis, and other devices. It provides a comprehensive hardware inventory, which is exactly what the administrator requires.
B. lsmod lists the status of modules currently loaded into the Linux kernel, which is related to software drivers, not a hardware inventory.
C. dmesg prints the kernel ring buffer, which contains boot-time messages, including hardware detection, but it is a log, not a structured inventory.
D. lscpu provides detailed information specifically about the CPU and its architecture, not a full system hardware inventory.
1. dmidecode(8) — Linux manual page. (n.d.). Retrieved from https://man7.org/linux/man-pages/man8/dmidecode.8.html. See the NAME section: "dmidecode - DMI table decoder" and the DESCRIPTION section: "dmidecode is a tool for dumping a computer's DMI... table contents in a human-readable format."
2. Red Hat Enterprise Linux 9 Documentation. (2023). Chapter 27. Getting information about hardware. In Managing monitoring and automation. Retrieved from https://access.redhat.com/documentation/en-us/redhatenterpriselinux/9/html/managingmonitoringandautomation/getting-information-about-hardwaremanaging-monitoring-and-automation. See Section 27.1, "Displaying information about hardware with dmidecode."
Keep practicing
Take the free XK0-006 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other XK0-006 practice questions
- Question 1A DevOps engineer needs to create a local Git repository. Which of the following commands…
- Question 2Which of the following is the main reason for setting up password expiry policies?
- Question 3A Linux administrator needs to securely erase the contents of a hard disk. Which of the f…
- Question 4Which of the following best describes the role of initrd?
- Question 5Which of the following is a characteristic of Python 3?
- Question 6A Linux user runs the following command: nohup ping comptia.com & Which of the following …
