12.6k views
3 votes
Which of the following commands can be used to gather information about the CPU found during boot?

1. dmesg | grep CPU
2. cat /proc/cpuinfo | grep CPU
3. find /var/log/dmesg | grep CPU
4. cat /var/log/messages | grep CPU

1 Answer

5 votes

The command that can be used to gather information about the CPU found during boot is: 2. cat /proc/cpuinfo | grep CPU

What is this command

This command reads the CPU-related information from the "/proc/cpuinfo" file and filters the output using "grep" to display details related to the CPU.

The command cat /proc/cpuinfo is used to display the contents of the /proc/cpuinfo file in the terminal. This file includes information such as CPU type, model, number of cores, cache size, flags, and more for each CPU core present in the system.

User Mark Payne
by
7.3k points