We see the various practical and useful alternatives to obtain detailed information about the state of the processor or CPU in all the Linux distributions and in this way to have better control over them. To obtain information about the maximum CPU speed, CPU information and speed of each kernel, we will add the parameter -C in the following way: inxi Inxi is a script tool through which we can obtain detailed information about the machine's hardware.įor its installation we will execute the following line: Debian/ Ubuntu: sudo apt install inxiįedora 22 and higher: sudo dnf install inxi To obtain the information of the processor in special, we will execute the following line: sudo dmidecode -type processor This command allows us to obtain information about any component of Linux systems by eliminating the contents of the DMI table, allowing the generated data to be readable by the user. To display this information, just run lscpu in the terminal to see the info: Lscpu displays detailed information about the CPU architecture taking values from the sysfs and /proc/cpuinfo files. If you have hyperthreading enabled then you are asking that the hardware present a single CPU core as multiple virtual CPUs. By reading virtual files, we can see what the Linux kernel is doing at the moment. Virtual Files A virtual file is a special type of file available on Linux-based operating systems. Once installed, we will run cpuid to obtain the real-time result of the CPU: Afterwards, we’ll cover the flags retrieved from the /proc/cpuinfo virtual file for different CPU manufacturers such as Intel, AMD, and ARM. To install cpuid, we must execute the following lines: Debian / Ubuntu: sudo apt install cpuidįedora 22 or higher : sudo dnf install cpuid Thanks to the cpuid command, it displays complete information about the processors based on the cpuid of each processor and reflecting the model of each processor. Next, to the cat command, we can add the grep parameter to obtain particular information such as: cat /proc/cpuinfo | grep 'vendor' | uniq: Display the name of the manufacturerĬat /proc/cpuinfo | grep 'model name' | uniq: Displays the model of the processorĬat /proc/cpuinfo | grep processor | wc -l: Indicates the number of processors on coresĬat /proc/cpuinfo | grep 'core id': Displays cores individually 2. Memory cache , among much more information.The result obtained will be the following: Inside the file /proc/cpuinfo all the information of the processor is stored, and we can have access to its contents thanks to the cat command. For this we must execute the following line: cat /proc/cpuinfo Commands to Get Detailed Info of the CPU in Linux 1. This tutorial brings a compilation of the best commands that we can use in Linux to obtain detailed information about the state of the CPU and in this way have total control over this aspect. Which one is correct This is my exact output from cat /proc/cpuinfo about my processor speed: model name : Intel (R) Core (TM) i7-4600U CPU 2. proc/cpuinfo shows that my CPU speed is 2.1 Ghz, whereas lspcu says it is 3167 Mhz. Complete command manual to get CPU information in Linux. I found two commands to output information about my CPU: cat /proc/cpuinfo and lscpu.
0 Comments
Leave a Reply. |