如何看CentOS系统是32位还是64位的?

前端之家收集整理的这篇文章主要介绍了如何看CentOS系统是32位还是64位的?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

32位系统:

[root@localhost ~]# file /sbin/init
/sbin/init: ELF 32-bit LSB shared object,Intel 80386,version 1 (SYSV),dynamically linked (uses shared libs),for GNU/Linux 2.6.18,stripped
[root@localhost ~]# file /bin/ls
/bin/ls: ELF 32-bit LSB executable,stripped

64位系统:
[root@localhost ]# file /sbin/init
/sbin/init: ELF 64-bit LSB shared object,x86-64,stripped
[root@localhost ]# file /bin/ls
/bin/ls: ELF 64-bit LSB executable,stripped
[root@localhost ]# uname -a
Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

猜你在找的CentOS相关文章