{"id":2112,"date":"2017-03-09T10:12:36","date_gmt":"2017-03-09T10:12:36","guid":{"rendered":"http:\/\/www.fastwebhost.in\/blog\/?p=2112"},"modified":"2019-02-12T04:56:00","modified_gmt":"2019-02-12T04:56:00","slug":"how-to-find-if-linux-is-running-on-32-bit-or-64-bit","status":"publish","type":"post","link":"https:\/\/www.fastwebhost.in\/blog\/how-to-find-if-linux-is-running-on-32-bit-or-64-bit\/","title":{"rendered":"How to Find if Linux is Running on 32-bit or 64-bit?"},"content":{"rendered":"<p>How to find if a computer is running&nbsp;32-bit or 64-bit operating system? If&nbsp;you want to install any new application on Linux or Ubuntu operating systems, It&#8217;s better you check whether it is compatible with 32 bit or 64 bit OS to avoid any conflicts.<\/p>\n<p>As I am using an Ubuntu system, so lets see how we can check on an Ubuntu server. I will show you different ways of checking whether your Ubuntu system is 32-bit or 64-bit. We will check both from shell and as well as from GUI.<\/p>\n<p>Before we proceed with commands, lets see few basics about 32-bit and 64-bit OS.<\/p>\n<h2>Basics about 32-bit and 64-bit OS<\/h2>\n<p>In early 90&#8217;s the processors use to run on 32-bit architecture. &nbsp;It means their data bus had the capacity of handling 32-bit at a time.&nbsp;As the technology grew, 64-bit processors replaced 32-bit.<\/p>\n<p>64-bit processors have a data bus with 64-bit. It means they can handle at least twice the fast when compared to 32-bits. To meet the requirements with 64-bits processors, operating systems released their 64 bit versions.<\/p>\n<h2>How to check with the command &#8220;uname&#8221;<\/h2>\n<p>The first two methods involve &#8220;uname&#8221; command which prints system information on the screen. If you want more information about 32-bit or 64-bit, just type the following command and press &#8220;Enter&#8221;<\/p>\n<p>uname -a&nbsp;<\/p>\n<p>On your screen you will see the information displayed in the below image. Let&#8217;s see this in order to understand the structure.&nbsp;<\/p>\n<ol>\n<li>Kernel Name<\/li>\n<li>Network node hostname<\/li>\n<li>Kernal Release<\/li>\n<li>Kernal Version<\/li>\n<li>Machine Hardware name<\/li>\n<li>Processor type<\/li>\n<li>Hardware platform<\/li>\n<li>Operating System<\/li>\n<\/ol>\n<p>The machine hardware name lists whether your system is 32-bit (&#8220;i686&#8221; or &#8220;i386&#8221;) or 64-bit (&#8220;x86_64&#8221;). Notice that the processor type and hardware platform also indicates 32-bit or 64-bit.<\/p>\n<p><span><img loading=\"lazy\" decoding=\"async\" alt=\"Checking if 32-bit or 64-bit using uname -a.png\" style=\"width: 694px;\" src=\"\/\/www.fastwebhost.in\/blog\/wp-content\/uploads\/2017\/03\/Checking-if-32-bit-or-64-bit-using-uname-a.png\" width=\"694\" height=\"39\"><\/span><\/p>\n<h2>Trying with uname -m<\/h2>\n<p>To know whether your system is 32-bit or 64-bit, type the command &#8220;uname -m&#8221; and press &#8220;Enter&#8221;.<\/p>\n<p>uname -m&nbsp;<\/p>\n<p>This displays only the machine hardware name. It shows if your system is running 32-bit (i686 or i386) or 64-bit(x86_64).<\/p>\n<p><span><img loading=\"lazy\" decoding=\"async\" alt=\"Checking version using uname -m\" style=\"width: 385px\" src=\"\/\/www.fastwebhost.in\/blog\/wp-content\/uploads\/2017\/03\/Checking-Version-using-uname-m-command.png\" width=\"385\" height=\"64\"><\/span><\/p>\n<h2>How to check with &#8220;arch&#8221; command<\/h2>\n<p>There is another command similar to &#8220;uname -m&#8221; which is \u201carch\u201d, it prints to the screen whether your system is running 32-bit (\u201ci686\u201d) or 64-bit (\u201cx86_64\u201d). Just give the following command and press &#8220;Enter&#8221;. You can check the result in the following image.<\/p>\n<p>arch<span><img loading=\"lazy\" decoding=\"async\" alt=\"Checking with arch command\" style=\"width: 346px\" src=\"\/\/www.fastwebhost.in\/blog\/wp-content\/uploads\/2017\/03\/Version-Check-using-arch-command.png\" width=\"346\" height=\"64\"><\/span><\/p>\n<h2>\u200bHow to check &#8220;file&#8221; command with special arguments<\/h2>\n<p>You can also use the command \u201cfile\u201d with a special argument (\u201c\/sbin\/init\u201d) to find out whether your system is running 32-bit or 64-bit. Type the following command and press &#8220;Enter&#8221;.<\/p>\n<p>file \/sbin\/init<\/p>\n<p>The following is the output you see on the screen. You can check the software version and it looks like &#8220;<strong>64-bit&#8221;<\/strong>.<\/p>\n<p><span><img loading=\"lazy\" decoding=\"async\" alt=\"Checking with command \" file\"\"=\"\" style=\"width: 694px;\" src=\"\/\/www.fastwebhost.in\/blog\/wp-content\/uploads\/2017\/03\/Version-check-using-File.png\" width=\"694\" height=\"51\"><\/span><\/p>\n<h2>Using &#8220;lscpu&#8221; command<\/h2>\n<p>This command displays complete CPU architecture. Where we can see if the CPU is having 32-bit or 64-bit. You can check the below image for more details.<\/p>\n<p><span><img loading=\"lazy\" decoding=\"async\" alt=\"checking with  lscpu command\" style=\"width: 300px;\" src=\"\/\/www.fastwebhost.in\/blog\/wp-content\/uploads\/2017\/03\/Using-with-lscpu.png\" width=\"300\" height=\"347\"><\/span><\/p>\n<h2>Let&#8217;s jump to the Graphical Mode<\/h2>\n<p>If you would rather use a graphical tool to find out whether your system is 32-bit or 64-bit, you can check from \u201cSystem Settings\u201d. Click the \u201cSystem\u201d menu button (gear button) in the upper-right corner of the screen and select \u201cSystem Settings\u201d from the drop-down menu.<\/p>\n<p>In this \u201cSystem Settings\u201d window check for \u201cDetails\u201d &nbsp;button in the \u201cSystem\u201d section, as shown below.<\/p>\n<p><span><img loading=\"lazy\" decoding=\"async\" alt=\"Checking from GUI\" style=\"width: 550px;\" src=\"\/\/www.fastwebhost.in\/blog\/wp-content\/uploads\/2017\/03\/Ubuntu-System-Details.png\" width=\"550\" height=\"384\"><\/span><\/p>\n<p>Your \u201cDetails\u201d screen displays. On the \u201cOverview\u201d screen, the \u201cOS type\u201d is listed as either \u201c64-bit\u201d or \u201c32-bit,\u201d along with other basic information about your Ubuntu system. You can check it from the below image.<\/p>\n<p><span><img loading=\"lazy\" decoding=\"async\" alt=\"Basic Ubuntu Information\" style=\"width: 550px;\" src=\"\/\/www.fastwebhost.in\/blog\/wp-content\/uploads\/2017\/03\/Ubuntu-Version-Check.png\" width=\"550\" height=\"306\"><\/span><\/p>\n<blockquote><p>Note:&nbsp;One thing to remember is that a 64 bit processor can support both 32 bit and 64 bit OS but a 32 bit processor can only run 32 bit OS.<\/p><\/blockquote>\n<h3>Conclusion<\/h3>\n<p>I think this quick post helped you to know if you have 32-bit or 64-bit OS. Hope you enjoyed reading this article? If so leave your comments in the below message box.\u200b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to find if a computer is running&nbsp;32-bit or 64-bit operating system? If&nbsp;you want to install any new application on Linux or Ubuntu operating systems, It&#8217;s better you check whether it is compatible with 32 bit or 64 bit OS to avoid any conflicts. As I am using an Ubuntu system, so lets see how [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":2148,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[22],"tags":[103,104,110],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.fastwebhost.in\/blog\/wp-json\/wp\/v2\/posts\/2112"}],"collection":[{"href":"https:\/\/www.fastwebhost.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fastwebhost.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fastwebhost.in\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fastwebhost.in\/blog\/wp-json\/wp\/v2\/comments?post=2112"}],"version-history":[{"count":3,"href":"https:\/\/www.fastwebhost.in\/blog\/wp-json\/wp\/v2\/posts\/2112\/revisions"}],"predecessor-version":[{"id":4931,"href":"https:\/\/www.fastwebhost.in\/blog\/wp-json\/wp\/v2\/posts\/2112\/revisions\/4931"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fastwebhost.in\/blog\/wp-json\/wp\/v2\/media\/2148"}],"wp:attachment":[{"href":"https:\/\/www.fastwebhost.in\/blog\/wp-json\/wp\/v2\/media?parent=2112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fastwebhost.in\/blog\/wp-json\/wp\/v2\/categories?post=2112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fastwebhost.in\/blog\/wp-json\/wp\/v2\/tags?post=2112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}