{"id":8928,"date":"2021-08-03T06:04:20","date_gmt":"2021-08-03T06:04:20","guid":{"rendered":"https:\/\/linuxways.net\/?p=8928"},"modified":"2021-08-03T06:04:20","modified_gmt":"2021-08-03T06:04:20","slug":"how-to-check-cpu-is-64-32-bit-in-linux-system","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/how-to-check-cpu-is-64-32-bit-in-linux-system\/","title":{"rendered":"How to Check CPU is 64\/32 Bit in Linux System"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>It&#8217;s very important to check if the system&#8217;s CPU architecture is 32 or 64-bit.<\/p>\n<p>When you install an application it is easy to realize that 64bit applications cannot run on a 32bit system but 32bit applications can run on a 64bit system.<\/p>\n<p>This article will show you how to check if the CPU is 64 or 32 Bit in Linux System as we go through below.<\/p>\n<h2>Using lscpu command<\/h2>\n<p>We can use the lscpu command to get CPU information in Linux. Run:<\/p>\n<pre>$ lscpu<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"127\" class=\"wp-image-8929\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image.jpeg\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image.jpeg 940w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-300x41.jpeg 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-768x104.jpeg 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p>\n<p>Look at <strong>Architecture<\/strong>, if it shows \u2018x86_64\u2019 it means you are running on a 64bit system. If it shows \u2018x86_32\u2019 it means you running on a 32bit system.<\/p>\n<p>Look at <strong>CPU op-mode(s)<\/strong>, if it shows both \u201832-bit, 64-bit\u2019 it means your CPU supports 32\/64bit. If it only shows \u201832bit\u2019 it means your CPU only supports 32bit.<\/p>\n<h2>Using uname command<\/h2>\n<p>Run the following command:<\/p>\n<pre>$ uname -m<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"72\" class=\"wp-image-8930\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-22.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-22.png 940w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-22-300x23.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-22-768x59.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p>\n<h2>Using lshw command<\/h2>\n<p>lshw is a command to get hardware information and you can use it to get CPU information.<\/p>\n<p>Run:<\/p>\n<pre>$ sudo lshw -c cpu<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"448\" class=\"wp-image-8931\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-1.jpeg\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-1.jpeg 940w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-1-300x143.jpeg 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-1-768x366.jpeg 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p>\n<p>The red part is your CPU information.<\/p>\n<p>You can also use grep command:<\/p>\n<pre>$ sudo lshw -c cpu | grep width<\/pre>\n<p>Output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"210\" class=\"wp-image-8932\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-23.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-23.png 940w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-23-300x67.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/08\/word-image-23-768x172.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p>\n<h2>Conclusion<\/h2>\n<p>You\u2019ve already gone through the details of how to check CPU is 64\/32 Bit in Linux System.<\/p>\n<p>Thanks for reading.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction It&#8217;s very important to check if the system&#8217;s CPU architecture is 32 or 64-bit. When you install an application it is easy to realize that 64bit applications&hellip;<\/p>","protected":false},"author":1,"featured_media":8962,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4,5,83,165,2],"tags":[460],"class_list":["post-8928","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-debian","category-mint","category-opensuse","category-red-hat","category-ubuntu","tag-cpu-architecture"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=8928"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8928\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/8962"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=8928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=8928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=8928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}