{"id":1047,"date":"2018-07-02T13:23:27","date_gmt":"2018-07-02T07:53:27","guid":{"rendered":"http:\/\/jaipurhosting.com\/blog\/?p=1047"},"modified":"2019-04-29T15:19:48","modified_gmt":"2019-04-29T09:49:48","slug":"5-command-line-ways-to-find-out-linux-system-is-32-bit-or-64-bit","status":"publish","type":"post","link":"https:\/\/www.jaipurhosting.com\/blog\/5-command-line-ways-to-find-out-linux-system-is-32-bit-or-64-bit\/","title":{"rendered":"5 Command Line Ways to Find Out Linux System is 32-bit or 64-bit"},"content":{"rendered":"<p><strong>Description<\/strong><\/p>\n<p>This article describes how to find out whether your Linux system\u2019s OS is <strong>32-bit<\/strong> or <strong>64-bit<\/strong>.<\/p>\n<p>This will be helpful if you wanted to download or install an application in your Linux system.<\/p>\n<p>As we all know, we can\u2019t install 64-bit applications into a 32-bit OS type.<\/p>\n<p>That\u2019s why knowing your Linux system\u2019s OS type is important.<\/p>\n<p>Here are the five easy and simple methods to verify your Linux system\u2019s OS type.<\/p>\n<p>It doesn\u2019t matter whether you\u2019re using a GUI or CLI type systems, the following commands will work on almost all Linux operating systems such as RHEL, CentOS, Fedora, Scientific Linux, Debian, Ubuntu, Linux Mint, openSUSE etc.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>1. uname Command<\/strong><\/p>\n<p>uname -a command will display your Linux system\u2019s OS type.<\/p>\n<p>This is the universal command and it will work on almost all Linux\/Unix operating systems.<\/p>\n<p>To find out the system\u2019s OS type, run:<\/p>\n<p>&nbsp;<\/p>\n<p><strong>2. dpkg Command<\/strong><\/p>\n<p>dpkg command will also display whether your Debian\/Ubuntu operating system is 32-bit or 64-bit.<\/p>\n<p>This command will work only on Debian and Ubuntu based distributions and it\u2019s derivatives.<\/p>\n<p>Open your Terminal, and run:<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$ dpkg --print-architecture<\/pre>\n<p>If your OS is 64-bit, you\u2019ll get the following output:<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">amd64<\/pre>\n<p>If your OS is 32-bit, then the output will be:<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">i386<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>3. getconf Command<\/strong><\/p>\n<p>getconf command will also display the system configuration variables.<\/p>\n<p>Now, let me show you how to find out the Linux system arch using getconf command.<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$ getconf LONG_BIT\n64<\/pre>\n<p>For more details refer the man pages.<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$ man getconf<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>4. arch Command<\/strong><\/p>\n<p>arch command will display your OS type.<\/p>\n<p>This command is similar to uname -m command.<\/p>\n<p>If its output is x86_64 then it\u2019s 64-bit OS.<\/p>\n<p>If the output is i686 or i386, then it\u2019s 32-bit OS.<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$ arch\nx86_64<\/pre>\n<p>&nbsp;<\/p>\n<p><strong>5. file Command<\/strong><\/p>\n<p>file command with with a special argument \/sbin\/init will display the OS type.<\/p>\n<pre class=\"theme:dark-terminal lang:default decode:true \">$ file \/sbin\/init\n\/sbin\/init: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU\/Linux 2.6.24, BuildID[sha1]=7a4c688d009fc1f06ffc692f5f42ab09e68582b2, stripped\n\n<\/pre>\n<p>There are few other ways to find out the OS type, but these are the often and pragmatic methods so far.<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"toolbar:2 lang:default decode:true \">We hope you\u2019ve found this useful!<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Description This article describes how to find out whether your Linux system\u2019s OS is 32-bit or 64-bit. This will be helpful if you wanted to download or install an application in your Linux system. As we all know, we can\u2019t install 64-bit applications into a 32-bit OS type. That\u2019s why knowing your Linux system\u2019s OS [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1294,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1047","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/posts\/1047","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/comments?post=1047"}],"version-history":[{"count":1,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/posts\/1047\/revisions"}],"predecessor-version":[{"id":1049,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/posts\/1047\/revisions\/1049"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/media\/1294"}],"wp:attachment":[{"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/media?parent=1047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/categories?post=1047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jaipurhosting.com\/blog\/wp-json\/wp\/v2\/tags?post=1047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}