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