查看centos系統版本命令

查看centos系統版本命令

[root@LAMP1 config]# cat /proc/version 
Linux version 2.6.32-279.el6.x86_64 (mockbuild@c6b9.bsys.dev.centos.org) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Fri Jun 22 12:19:21 UTC 2012
[root@LAMP1 config]# uname -a
Linux LAMP1.1 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
[root@LAMP1 config]# uname -r
2.6.32-279.el6.x86_64
[root@LAMP1 config]# 

查看版本:

[root@LAMP1 config]# cat /etc/issue
CentOS release 6.3 (Final)
Kernel \r on an \m

[root@LAMP1 config]# cat /etc/redhat-release 
CentOS release 6.3 (Final)
[root@LAMP1 config]# 

查看64位還是32位:

[root@LAMP1 config]# getconf LONG_BIT
64
[root@LAMP1 config]# 

使用 file /bin/ls

[root@LAMP1 config]# 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.18, stripped
[root@LAMP1 config]# 
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容