How to Check if Linux (Ubuntu, Fedora Redhat, CentOS) is 32-bit or 64-bit

The number of CPU instruction sets has kept growing, and likewise for the operating systems which are able to run and support on more than one CPU system architecture. For example, a Linux OS such as Ubuntu, Fedora, Redhat, Linux Mint, Debian, Arch Linux, openSUSE and CentOS can run on Intel or AMD CPU in either 32-bit or 64-bit flavor. In addition, some Linux also supports ARM CPU in both 32-bit and 64-bit versions.

So something it’s important to check and verify the edition and flavor of operating system been installed on the computer, before performing tasks such as installing new applications and kernel upgrade, so that the matching version could be installed to ensure proper compatibility.

If you want to know whether the Linux running on your machine is of 32-bit or 64-bit variant, and also the type of microprocessor instruction sets architecture of the machine, run the following command on the CLI:

uname -a

The result will be something similar to any of the following lines:

Linux server.mydigitallife.info 2.6.32-431.5.1.el6.x86_64 #1 SMP Wed Feb 07 07:07:07 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Or,

Linux Middlebin-Ubuntu 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011 i686 athlon i386 GNU/Linux

Or,

Linux host 3.13.7-1-ARCH #1 PREEMPT Mon Mar 8 07:07:07 MDT 2012 armv5tel GNU/Linux

Uname is the command that is used in Linux to print the name, version and other details about the current machine and the operating system running on it. The version of Linux kernel be installed on the system can be deduced from the result above, for example:

i386 – 32-bit kernel
x86_64 – 64-bit kernel
armv5tel – ARMv5

The possible values including i386; i686; x86_64; ia64; alpha; amd64; arm; armeb; armel; hppa; m32r; m68k; mips; mipsel; powerpc; ppc64; s390; s390x; sh3; sh3eb; sh4; sh4eb; sparc and etc.

There may be multiple entries as uname returns values for many variables such as system kernel, operating System (or distribution), machine, processor, hardware platform and more. Normally all values should be the same, but some instruction sets architecture does provide backward compatibility, which means it supports more than one variant of operating systems. For example, one can install 32-bit or 64-bit operating system on a x64 CPU processor. Just select the one with highest comparability.

If you want specific information about your system, you can use different switch option to return just the information you want, instead of everything about your system.

Here’s the options that can apply to uname command:

-s, --kernel-name [print the kernel name]
-n, --nodename [print the network node hostname]
-r, --kernel-release [print the kernel release]
-v, --kernel-version [print the kernel version]
-m, --machine [print the machine hardware name]
-p, --processor [print the processor type or "unknown"]
-i, --hardware-platform [print the hardware platform or "unknown"]
-o, --operating-system [print the operating system]
时间: 2024-09-30 05:43:18

How to Check if Linux (Ubuntu, Fedora Redhat, CentOS) is 32-bit or 64-bit的相关文章

Linux系统(Ubuntu/Debian/RedHat/CentOS)超级简单的samba配置文件smb.conf

1.超简单的smb.conf 该配置文件对Ubuntu和CentOS都好用. #============== Global Settings ============== [global] ## Browsing/Identification ### workgroup = mshome server string = samba security = share wins support = no guest account = wslu #============== Share Defin

【转帖】Linux发行版:CentOS、Ubuntu、RedHat、Android、Tizen、MeeGo

Linux发行版:CentOS.Ubuntu.RedHat.Android.Tizen.MeeGo作者:阳光岛主 原文在这儿 Linux,最早由Linus Benedict Torvalds在1991年开始编写.在这之前,Richard Stallman创建了Free Software Foundation(FSF)组织以及GNU项目,并不断的编写创建GNU程序(此类程序的许可方式均为GPL: General Public License).在不断的有杰出的程序员和开发者加入到GNU组织中后,便

怎样用linux命令知道系统是ubuntu还是redhat或者其它的系统?

1.第一种方法:# lsb_release -aLSB Version:    :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarchDistributor ID:    CentOSDescription:    CentOS release 5.7 (Final)Release:    5.7Codename:    Final 这个命

Windows 7硬盘安装CentOS 6.4 双系统 (WIN7硬盘安装Linux(Fedora 16,CentOS 6.2,Ubuntu 12.04))

 WIN7下硬盘安装Linux(Fedora 16,CentOS 6.2.Ubuntu 12.04) 近期在看<鸟哥私房菜:基础学习篇>.认为非常不错,想要用U盘装个windows 7 和 CentOS 6.4的 双系统,在网上找了非常多教程,认为乱七八糟的,弄得非常复杂,并且非常多都不是非常完整,对于新手实在是伤不起. 终于自己用U盘装了两次,有一次还把引导程序装到U盘MBR去了. o(╯□╰)o 决定写篇博客,防记忆衰老.也为全部想学 linux 的小白贡献一点资料吧. O(∩_∩)O~

Linux操作系统各版本ISO镜像下载(包括oracle linux\redhat\centos\u

Linux操作系统各版本ISO镜像下载(包括oracle linux\redhat\centos\ubuntu\debian等) 2015年2月25日, 下午7:49 1.Oracle Linux(下载地址) (1)OracleLinux-Release6-Update0-x86_64-dvd.iso(2)OracleLinux-Release6-Update1-x86_64-dvd.iso(3)OracleLinux-Release6-Update2-x86_64-dvd.iso(4)Orac

Linux -- Ubuntu搭建java开发环境

Steps 1Check to see if your Ubuntu Linux operating system architecture is 32-bit or 64-bit, open up a terminal and run the following command below. Type/Copy/Paste: file /sbin/init Note the bit version of your Ubuntu Linux operating system architectu

RedHat Enterprise Linux 6.4使用Centos 6的yum源问题

RedHat Enterprise Linux 6.4使用Centos 6的yum源问题 作为一名新手,学习Linux已经一个月了,其间遇到了不少问题,而今天笔者遇到的问题是 #yum install pam-devel #This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Setting up Install Process

Linux Study之--RedHat EL6配置VNC server

Linux Study之--RedHat EL6配置VNC server 系统环境:    操作系统:RedHat EL6.4(64)    RH6在vnc server的安装及配置和RH5稍微有不同,以下案例在RH EL6.4上安装配置vnc server 1.查看vnc 安装包 [[email protected] ~]# rpm -qa |grep vncgtk-vnc-0.3.10-3.el6.x86_64libvncserver-0.9.7-4.el6.x86_64gtk-vnc-py

Install .NET Core Runtime on Linux Ubuntu 16.04 x64

原文链接https://www.microsoft.com/net/download/linux-package-manager/ubuntu16-04/runtime-current nstall .NET Core Runtime on Linux Ubuntu 16.04 x64 Not sure where to start? See Get started with .NET in 10 minutes. Linux Distribution                  RHEL