Linux版本顯示和區別32位還是64位系統


查看已經安裝的Linux版本信息

1.cat /etc/issue 查看版本

[root@master master]# cat /etc/issue
\S
Kernel \r on an \m

2. cat /etc/redhat-release 查看版本

[root@master master]# cat /etc/redhat-release
CentOS Linux release 7.5.1804 (Core)

   3. cat /proc/version   查看版本

[root@master master]# cat /proc/version
Linux version 3.10.0-862.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Fri Apr 20 16:44:24 UTC 2018

  4.uname -a 顯示如下

[root@master master]# uname -a 
Linux master 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

5 uname -r  顯示如下

[root@master master]# uname -r 
3.10.0-862.el7.x86_64

查看Linux是32位系統還是64位系統

1.file /bin/ls

[root@master master]# file /bin/ls
/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=c5ad78cfc1de12b9bb6829207cececb990b3e987, stripped

2.getconf LONG_BITgetconf WORD_BIT

[root@master master]# getconf LONG_BIT
64
[root@master master]# getconf WORD_BIT
32

3.uname -a

[root@master master]# uname -a
Linux master 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM