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]
How to Check if Linux (Ubuntu, Fedora Redhat, CentOS) is 32-bit or 64-bit的更多相关文章
- Fedora Redhat Centos 有什么区别和关系?
Fedora Redhat Centos 有什么区别和关系? 经常看到有人讨论服务器的操作系统,比如 Readhat 和 Centos,还有 Ubuntu Server. 可能 Ubuntu Serv ...
- Linux下查询一个包是32位还是64位
Linux下查询一个包是32位还是64位 [root@localhost ~]# rpm -qa --queryformat %-{name}-%{version}-%{release}-%{arc ...
- Linux系统(Ubuntu/Debian/RedHat/CentOS)超级简单的samba配置文件smb.conf
1.超简单的smb.conf 该配置文件对Ubuntu和CentOS都好用. #============== Global Settings ============== [global] ## Br ...
- linux 问题二 查看系统是32位还是64位
方法: 1.uname -a 2.uname -m 3.file /sbin/init 4.arch 5.Settings -> Details 说明: 1. i386 适用于intel和AMD ...
- Arch Linux 安装博通 BCM4360 驱动(Arch Linux, Ubuntu, Debian, Fedora...)
BCM4360 在2010年9月,博通完全开源的硬件驱动[1].该驱动程序 brcm80211已被列入到自2.6.37之后的内核中.随着2.6.39发布,这些驱动程序已被重新命名为 brcmsmac和 ...
- Linux下载_Linux系统各种版本ISO镜像下载(redhat,centos,oracle,ubuntu,openSUSE)
以下是风哥收集的Linux系统各种版本ISO镜像下载,包括redhat,centos,oracle,ubuntu等linux操作系统. Linux下载1:红帽RedHat Linux(RHEL5.RH ...
- 【转帖】Linux发行版:CentOS、Ubuntu、RedHat、Android、Tizen、MeeGo
Linux发行版:CentOS.Ubuntu.RedHat.Android.Tizen.MeeGo作者:阳光岛主 原文在这儿 Linux,最早由Linus Benedict Torvalds在199 ...
- 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 和 ...
- 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 和 ...
随机推荐
- 【Codeforces】CF 911 D. Inversion Counting(逆序对+思维)
题目 传送门:QWQ 分析 思维要求比较高. 首先我们要把原图的逆序对q算出来. 这个树状数组或归并排序都ok(树状数组不用离散化好评) 那么翻转$[l,r]$中的数怎么做呢? 暴力过不了,我试过了. ...
- Kafka 基本原理
Kafka 基本原理 来源:阿凡卢 , www.cnblogs.com/luxiaoxun/p/5492646.html 简介 Apache Kafka是分布式发布-订阅消息系统.它最初由Link ...
- 显式锁(二)Lock接口与显示锁介绍
一.显式锁简介 显式锁,这个叫法是相对于隐式锁synchronized而言的,加锁和解锁都要用户显式地控制.显示锁Lock是在Java5中添加到jdk的,同synchronized一样,这也是一 ...
- 2018-2019-2 《网络对抗技术》Exp4 恶意代码分析 Week6 20165233
Exp4 恶意代码分析 实验内容 一.基础问题 1.如果在工作中怀疑一台主机上有恶意代码,但只是猜想,所有想监控下系统一天天的到底在干些什么.请设计下你想监控的操作有哪些,用什么方法来监控. 使用wi ...
- Mybatis 为什么不要用二级缓存
https://www.cnblogs.com/liouwei4083/p/6025929.html mybatis 二级缓存不推荐使用 一 mybatis的缓存使用. 大体就是首先根据你的sqlid ...
- rhel7配置ELK过程
参考网站:https://www.cnblogs.com/hongdada/p/7887455.html https://my.oschina.net/codingcloud/blog/1615013 ...
- delphi android路径 TPath 文件路径,文件管理
获取Android相关文档路径 delphi 新路径.文件功能 IOUtils单元,文件路径,文件管理 http://docwiki.embarcadero.com/RADStudio/Berlin/ ...
- 编写一个基于Soap DataModule的三层数据库应用
服务器端:建立一个Web App Debugger executable类型,不需要接口,添加一个SoapData Module,放上AdoCon,AdoDataSet,DataSetProvider ...
- c++Builder XE6 MD5 加密算法 BASE64 URL 编码
xe6,xe7 BASE64XE6 MD5 加密算法Delphifunction MD5(const texto: string): string; var idmd5: TIdHashMessage ...
- 基于OpenGL编写一个简易的2D渲染框架-13 使用例子
这是重构渲染器的最后一部分了,将会给出一个 demo,测试模板测试.裁剪测试.半透明排序等等: 上图是本次 demo 的效果图,中间的绿色图形展现的是模板测试. 模板测试 void init(Pass ...