查看centos版本及位數

方法一:

uname -a
Linux bigdata.fuyun.com 3.10.0-1062.el7.centos.plus.i686 #1 SMP Wed Aug 14 17:40:53 UTC 2019 i686 i686 i386 GNU/Linux

方法二:

cat /proc/version
Linux version 3.10.0-1062.el7.centos.plus.i686 ([email protected]) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ) #1 SMP Wed Aug 14 17:40:53 UTC 2019

方法三:

file /bin/ls
/bin/ls: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=eec704832803dbb86653bc2f0a65ba902a448726, stripped
cat /etc/centos-release
CentOS Linux release 7.7.1908 (AltArch)

cat /etc/centos-release-upstream
Derived from Red Hat Enterprise Linux 7.7 (Source)

查看64位還是32位:

getconf LONG_BIT
32
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章