6/12/2023 0 Comments Cpuinfo linux![]() ![]() 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. 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. 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 I found two commands to output information about my CPU: cat /proc/cpuinfo and lscpu. 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. Once installed, we will run cpuid to obtain the real-time result of the CPU: 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. So if you have an Core 2 Duo, AMD Bulldozer, Core i7, etc. ![]() This will give you the individual MHz for each CPU Core. CPU MHz: 1600.000 cat /proc/cpuinfo or more precise cat /proc/cpuinfo grep 'MHz'. Memory cache , among much more information. This will give you the general MHz for the CPU.The result obtained will be the following: Using lscpu Command Uisng /proc/cpuinfo File Using cpuid Command Using dmidecode Command Using Inxi Tool Using lshw Tool Using top or htop Command Using. 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. Complete command manual to get CPU information in Linux.
0 Comments
Leave a Reply. |