{"id":1522,"date":"2021-12-16T11:53:38","date_gmt":"2021-12-16T08:53:38","guid":{"rendered":"https:\/\/files2.tojikon.net\/files-cloud\/2021\/05\/25\/how-to-check-your-cpu-in-linux\/https:\/\/files2.tojikon.net\/files-cloud\/2021\/05\/25\/how-to-check-your-cpu-in-linux\/"},"modified":"2021-12-16T11:53:38","modified_gmt":"2021-12-16T08:53:38","slug":"how-to-check-your-cpu-in-linux","status":"publish","type":"post","link":"https:\/\/tojikon.net\/en\/1522-how-to-check-your-cpu-in-linux\/","title":{"rendered":"How to check your CPU in Linux"},"content":{"rendered":"<section id=\"related_posts\">\n<div class=\"block-head\">\n<h3>Related Articles<\/h3>\n<\/div>\n<\/section>\n<p>If you\u2019re a Linux user and need to know your CPU hardware specs, there are many ways to find out. In this guide, we\u2019ll focus on Lscpu, the cpuinfo file, as well as Inxi. This guide will show you how to use all of these tools to find your CPU specs on Linux.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-402645 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux.png\" alt=\"check CPU in Linux\" width=\"1200\" height=\"567\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux-3.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux-4.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux-5.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>To start, open up a terminal window by pressing <strong>Ctrl + Alt + T\u00a0<\/strong>on the keyboard, or search for \u201cTerminal\u201d in the app menu. Once the terminal window is open, follow along with the instructions below that correspond with the tool you prefer to use.<\/p>\n<p>Need to benchmark your CPU? Check out our gudie.<\/p>\n<h2>How to check your CPU \u2013 Lscpu<\/h2>\n<p>The lscpu program is built-in on 99% of all Linux operating systems. So, you do not need to install it before attempting to use it to find out CPU hardware information.\u00a0<\/p>\n<p>To find out your CPU hardware specs, you can run the\u00a0<strong>lscpu\u00a0<\/strong>command as is. When you run this command, you\u2019ll see a detailed list at the top. This list denotes your CPU\u2019s architecture, CPU operation modes that it supports (e.g., 64-bit and 32-bit), how many CPU cores (distinguished as CPUs), cores per socket, model name, and many other things.<\/p>\n<pre>\nlscpu\n<\/pre>\n<p>If you need to filter out a specific item in the\u00a0<strong>lscpu\u00a0<\/strong>list, you can combine the command with\u00a0<strong>grep<\/strong>\u00a0and specify your keyword. For example, if you need to find out your exact CPU model name, you can run the following command.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-402645 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux.png\" alt=\"\" width=\"1200\" height=\"567\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux-3.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux-4.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux-5.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<pre>\nlscpu | grep 'Model name'\n<\/pre>\n<p>Or, if you need to find out how many cores you have on your CPU, you can run the\u00a0<strong>lscpu\u00a0<\/strong>command with the \u201cCore(s) per socket\u201d keyword. This keyword will filter out the line in the output that tells you how many cores you have.<\/p>\n<pre>\nlscpu | grep 'Core(s) per socket'\n<\/pre>\n<p>There\u2019s a lot of information to gain out of the\u00a0<strong>lscpu\u00a0<\/strong>command. You can find and filter out any information just by taking <strong>grep<\/strong> and adding in a keyword.<\/p>\n<pre>\nlscpu | grep 'MY KEYWORD'\n<\/pre>\n<p>If you wish to save your CPU information output later to a text file, it\u2019s possible. Here\u2019s how you can do it. Pipe the output to a text file using the command below.<\/p>\n<pre>\nlscpu &gt; ~\/my-cpu-info.txt\n<\/pre>\n<p>View this text file at any time by executing the following\u00a0<strong>cat\u00a0<\/strong>command.<\/p>\n<pre>\ncat ~\/my-cpu-info.txt\n<\/pre>\n<p>In addition to viewing the text file in the terminal with the\u00a0<strong>cat\u00a0<\/strong>command, you can also view it by clicking on \u201cmy-cpu-info.txt\u201d in your Linux file manager. When you click on it, it will launch it in the default text editor.<\/p>\n<h2>How to check your CPU \u2013 \/proc\/cpuinfo<\/h2>\n<p>Another way to find CPU information is with the <code>\/proc\/cpuinfo<\/code> file. It houses a ton of useful info, and you can use it to find your CPU brand, your core count, and many other things.\u00a0<\/p>\n<p>To start, open up a terminal window on the desktop. You can open up a terminal window by pressing\u00a0<strong>Ctrl + Alt + T\u00a0<\/strong>on the keyboard or searching for \u201cTerminal\u201d in the app menu.<\/p>\n<p>Inside the terminal, run the <strong>cat\u00a0<\/strong>command on the \/proc\/cpuinfo file to view your CPU information.\u00a0<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-402638 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux-1.png\" alt=\"\" width=\"1200\" height=\"488\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux-1.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux-6.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux-7.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux-8.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<pre>\ncat \/proc\/cpuinfo\n<\/pre>\n<p>When you run the above command, it will show you everything there is to know about your CPU. If you want to view specific things, like the model name, you can run\u00a0<strong>cat\u00a0<\/strong>with the\u00a0<strong>grep\u00a0<\/strong>command and your specified keyword.<\/p>\n<pre>\ncat \/proc\/cpuinfo | grep 'model name'\n<\/pre>\n<p>To save any of this information to a file, you can do the following command.<\/p>\n<pre>\ncat \/proc\/cpuinfo &gt; ~\/my-cpu-info.txt\n<\/pre>\n<p>At any time, you can view this CPU information by typing\u00a0the command below or by clicking on \u201cmy-cpu-info.txt\u201d in your file manager.<\/p>\n<pre>\ncat ~\/my-cpu-info.txt\n<\/pre>\n<h2>How to check your CPU \u2013 Inxi<\/h2>\n<p>Inxi is a handy tool that, once installed, can give you a ton of helpful information about your computer, from CPU to the kernel, memory info, storage, etc. To use Inxi to check your CPU info, you\u2019ll first need to install it.\u00a0<\/p>\n<p>To install Inxi, open up a terminal window. You can open up a terminal window by pressing\u00a0<strong>Ctrl + Alt + T\u00a0<\/strong>on the keyboard or searching for it in the app menu. Once the terminal window is open, follow the instructions below to get Inxi working.<\/p>\n<h4>Ubuntu\u00a0<\/h4>\n<pre>\nsudo apt install inxi\n<\/pre>\n<h4>Debian<\/h4>\n<pre>\nsudo apt-get install inxi\n<\/pre>\n<h4>Arch Linux<\/h4>\n<pre>\nsudo pacman -S git base-devel\ngit clone https:\/\/aur.archlinux.org\/trizen.git\ncd trizen\/\nmakepkg -sri\ntrizen -S inxi\n<\/pre>\n<h4>Fedora<\/h4>\n<pre>\nsudo dnf install inxi\n<\/pre>\n<h4>OpenSUSE<\/h4>\n<pre>\nsudo zypper install inxi\n<\/pre>\n<p>With Inxi installed, you can use it to find your CPU information by using the\u00a0<strong>inxi -C\u00a0<\/strong>command below.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-402644 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux-2.png\" alt=\"\" width=\"1200\" height=\"235\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux-2.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux-9.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux-10.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-check-your-cpu-in-linux-11.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<pre>\ninxi -C\n<\/pre>\n<p>If you\u2019d like to save this output of your CPU information to a text file, you can do so by entering the following command.<\/p>\n<pre>\ninxi -C &gt; ~\/my-cpu-info.txt\n<\/pre>\n<p>To view this file, enter the following command or click on \u201cmy-cpu-info.txt\u201d in the file manager.<\/p>\n<p>Need to view the CPU temperature? Check out our guide.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Related Articles If you\u2019re a Linux user and need to know your CPU hardware specs, there are many ways to find out. In this guide, we\u2019ll focus on Lscpu, the cpuinfo file, as well as Inxi. This guide will show you how to use all of these tools to find your CPU specs on Linux. &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1523,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[33],"_links":{"self":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1522"}],"collection":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/comments?post=1522"}],"version-history":[{"count":0,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1522\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media\/1523"}],"wp:attachment":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media?parent=1522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/categories?post=1522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/tags?post=1522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}