XK0-004 · Question #121
An administrator needs to see the type of CPU that a server is running. Which of the following files contains this information?
The correct answer is A. /proc/cpuinfo. The /proc/cpuinfo file is a virtual file in the Linux proc filesystem that exposes detailed CPU hardware information to user space.
Question
An administrator needs to see the type of CPU that a server is running. Which of the following files contains this information?
Options
- A/proc/cpuinfo
- B/etc/devices/info.conf
- C/dev/proc/cpu
- D/sys/dev/cpuinfo
How the community answered
(36 responses)- A92% (33)
- B3% (1)
- D6% (2)
Why each option
The /proc/cpuinfo file is a virtual file in the Linux proc filesystem that exposes detailed CPU hardware information to user space.
/proc/cpuinfo is a virtual file maintained by the Linux kernel that contains detailed information about each CPU core, including model name, vendor, clock speed, and supported features. It is the standard location queried by tools like lscpu and cat, and the /proc virtual filesystem is the authoritative source for runtime hardware information on Linux systems.
/etc/devices/info.conf does not exist as a standard Linux file; the /etc directory holds system configuration files, not runtime hardware data.
/dev/proc/cpu is not a valid Linux path; /dev contains device node files and has no proc subdirectory.
/sys/dev/cpuinfo does not exist as a standard path; while the sysfs filesystem at /sys exposes some hardware info, detailed CPU data is found under /proc/cpuinfo, not /sys/dev.
Concept tested: Linux /proc filesystem CPU information retrieval
Source: https://www.kernel.org/doc/html/latest/filesystems/proc.html
Topics
Community Discussion
No community discussion yet for this question.