Linux+ Exam XK0-004: Identifying CPU Information | CompTIA

Which File Contains CPU Information on a Linux Server?

Question

An administrator needs to see the type of CPU that a server is running.

Which of the following files contains this information?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

A.

https://www.binarytides.com/linux-cpu-information/

The correct answer is A. /proc/cpuinfo.

The file /proc/cpuinfo contains information about the server's central processing unit (CPU). It is a virtual file that provides system information as a series of read-only data streams. It contains information about the processor's architecture, clock speed, vendor ID, cache size, and other CPU-related details.

Here's a breakdown of the other answer options:

B. /etc/devices/info.conf: This file does not exist by default on a Linux system. It is possible that it was created by the administrator for a specific purpose. It is not related to CPU information.

C. /dev/proc/cpu: This path is incorrect. The correct path to access CPU information is /proc/cpuinfo.

D. /sys/dev/cpuinfo: This path is incorrect. The correct path to access CPU information is /proc/cpuinfo. The /sys directory is used to access and manipulate kernel settings and information.

In summary, the correct file to view CPU information on a Linux server is /proc/cpuinfo.