uname -r 查看kernel版本 uname -a 查看系统版本 cat /etc/issue 查看版本相关信息 -----> 建议使用
[root@h2master bin]# uname -a
Linux h2master 2.6.18-308.el5 #1 SMP Tue Feb 21 20:05:41 EST 2012 i686 athlon i386 GNU/Linux
[root@h2master bin]# uname -r
2.6.18-308.el5
[root@h2master bin]# cat /etc/issue
CentOS release 5.8 (Final)
Kernel \r on an \m
Red Hat Enterprise Linux上有一条命令: # arch 结果是i686则是32位,x86_64则是64位