{"id":12629,"date":"2019-03-28T04:33:22","date_gmt":"2019-03-28T04:33:22","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12629"},"modified":"2019-03-28T04:33:22","modified_gmt":"2019-03-28T04:33:22","slug":"5-command-line-ways-to-find-out-linux-system-is-32-bit-or-64-bit","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/28\/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>This tutorial describes how to find out whether your Linux system\u2019s OS is\u00a0<strong>32-bit<\/strong>\u00a0or\u00a0<strong>64-bit<\/strong>. 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\u00a0<strong>64-bit<\/strong>applications into a\u00a0<strong>32-bit<\/strong>\u00a0OS type. That\u2019s why knowing your Linux system\u2019s OS type is important.<\/p>\n<div id=\"attachment_17566\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/12\/Check-Linux-System-32-bit-or-64-bit.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-17566\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2015\/12\/Check-Linux-System-32-bit-or-64-bit.png\" alt=\"Check Linux System is 32-bit or 64-bit\" width=\"718\" height=\"343\" aria-describedby=\"caption-attachment-17566\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-17566\" class=\"wp-caption-text\">Check Linux System is 32-bit or 64-bit<\/p>\n<\/div>\n<p>Here are the five easy and simple methods to verify your Linux system\u2019s OS type. 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<h3>1. uname Command<\/h3>\n<p><strong>uname -a<\/strong>\u00a0command will display your Linux system\u2019s OS type. 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<pre><strong>$ uname -a<\/strong>\r\n\r\nLinux tecmint.com 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014 <strong>x86_64 x86_64 x86_64<\/strong> GNU\/Linux\r\n<\/pre>\n<h3>2. dpkg Command<\/h3>\n<p><a href=\"https:\/\/www.tecmint.com\/dpkg-command-examples\/\" target=\"_blank\" rel=\"noopener\">dpkg command<\/a>\u00a0will also display whether your Debian\/Ubuntu operating system is\u00a0<strong>32-bit<\/strong>\u00a0or\u00a0<strong>64-bit<\/strong>. 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><strong>$ dpkg --print-architecture<\/strong> \r\n<\/pre>\n<p>If your OS is\u00a0<strong>64-bit<\/strong>, you\u2019ll get the following output:<\/p>\n<pre>amd64\r\n<\/pre>\n<p>If your OS is\u00a0<strong>32-bit<\/strong>, then the output will be:<\/p>\n<pre>i386\r\n<\/pre>\n<h3>3. getconf Command<\/h3>\n<p><strong>getconf<\/strong>\u00a0command will also display the system configuration variables. Now, let me show you how to find out the Linux system arch using\u00a0<strong>getconf<\/strong>\u00a0command.<\/p>\n<pre><strong>$ getconf LONG_BIT<\/strong>\r\n\r\n64\r\n<\/pre>\n<p>For more details refer the man pages.<\/p>\n<pre><strong>$ man getconf<\/strong>\r\n<\/pre>\n<h3>4. arch Command<\/h3>\n<p><strong>arch<\/strong>\u00a0command will display your OS type. This command is similar to\u00a0<strong>uname -m<\/strong>\u00a0command. If its output is\u00a0<strong>x86_64<\/strong>\u00a0then it\u2019s 64-bit OS. If the output is\u00a0<strong>i686<\/strong>\u00a0or i386, then it\u2019s 32-bit OS.<\/p>\n<pre><strong>$ arch<\/strong>\r\n\r\nx86_64\r\n<\/pre>\n<h3>5. file Command<\/h3>\n<p><strong>file<\/strong>\u00a0command with with a special argument\u00a0<strong>\/sbin\/init<\/strong>\u00a0will display the OS type.<\/p>\n<pre><strong>$ file \/sbin\/init<\/strong>\r\n\r\n\/sbin\/init: ELF <strong>64-bit<\/strong> LSB  shared object, <strong>x86-64<\/strong>, version 1 (SYSV), dynamically linked (uses shared libs), for GNU\/Linux 2.6.24, BuildID[sha1]=7a4c688d009fc1f06ffc692f5f42ab09e68582b2, stripped\r\n<\/pre>\n<h3>Conclusion<\/h3>\n<p>You now know the ways to find out your Linux operating system\u2019s type. Of course, there are few other ways to find out the OS type, but these are the often and pragmatic methods so far. If you know any other commands or methods to display the OS type, feel free to let us know in the comments section below.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/find-out-linux-system-is-32-bit-or-64-bit\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial describes how to find out whether your Linux system\u2019s OS is\u00a032-bit\u00a0or\u00a064-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\u00a064-bitapplications into a\u00a032-bit\u00a0OS type. That\u2019s why knowing your Linux system\u2019s OS type is important. Check Linux System is 32-bit &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/28\/5-command-line-ways-to-find-out-linux-system-is-32-bit-or-64-bit\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;5 Command Line Ways to Find Out Linux System is 32-bit or 64-bit&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12629","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12629","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=12629"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12629\/revisions"}],"predecessor-version":[{"id":12630,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12629\/revisions\/12630"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}