How to Check the CPU Info in Linux

HomeLinuxHow to Check the CPU Info in Linux

How to Check the CPU Info in Linux

Did you ever wondered about the CPU info of the computer you are using? Like the architecture, the number of cores, model and so on. In Linux, you can get the complete information about your CPU in a single command.

While there are many GUI-based tools to check your CPU info, command line tools are still the best option to check the hardware-related info on your computer. Command-line based tools display more accurate info. As I said, you can check the CPU of your Linux computer with a single command. The command you are going to use is lscpu.

lscpu is the standard tool to check the CPU info in Linux. This tool displays the complete CPU info in readable format. The CPU-related info displayed by this tool include the architecture, the number of cores, processor model, processor vendor, clock speed and so o.

In most Linux distros, lscpu can be used by all users. You don’t have to be root to run it. It is also installed by default. This tool works by gathering the CPU info from sysfs and “/proc/cpuinfo”. To use the tool, simply type lscpuon the terminal and you will see the following outputs.

Some of the key columns from the table above are:

  • Architecture: tells the type of your CPU. x86_64 means you have a 64-bit processor.
  • CPU(s): tells the number of cores of your CPU.
  • Vendor ID: tells your CPU vendor
  • Model name: tells the CPU model

Other tools

In addition to lscpu, there are also several other tools you can use to check the CPU info of your computer. Amongst other are hwinfo and inxi. However, those two tools are not installed by default in most Linux distro. Plus, they also display far more complex outputs. Other option, you can also manually display the contents of the cpuinfo file which is located under the the “/proc” directory by typing cat /proc/cpuinfoon the terminal. Again, you will also see a more complex outputs.

hand-picked weekly content in your inbox

.

related posts

1 COMMENT

  1. You may try CoreFreq which can gather several CPU infos, straight from the processor registers. Turbo frequencies monitoring for example.

    Beside the ArchLinux AUR repo, CoreFreq is provided as open-source, it requires to build software from its source-code.
    For an easy run, a Linux Live CD is ready to boot hardware.

    http://github.com/cyring/CoreFreq

LEAVE A REPLY

Please enter your comment!
Please enter your name here