查看内核版本
使用uname命令
uname:Print certain system information
[root@localhost ~]# uname -r
2.6.32-431.el6.i686
查看/proc/version
[root@localhost ~]# cat /proc/version
Linux version 2.6.32-431.el6.i686 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Fri Nov 22 00:26:36 UTC 2013
查看CentOS的版本
[root@localhost ~]# cat /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m
查看系统是64位还是32位
[root@localhost ~]# getconf LONG_BIT
32
[root@localhost ~]# file /bin/ls
/bin/ls: ELF32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped