查看系统版本及内核版本


:Mr.zhou  阅读: 1,001 次

1、查看系统版本
[shell]
[root@localhost ~]# cat /etc/redhat-release
CentOS release 6.5 (Final)
[root@localhost ~]#
[/shell]

2、查看内核版本
[shell]
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-431.el6.i686 #1 SMP Fri Nov 22 00:26:36 UTC 2013 i686 i686 i386 GNU/Linux
[root@localhost ~]# uname -r
2.6.32-431.el6.i686
[root@localhost ~]#
[/shell]

[shell]
2.6.32-431.el6.i686

2 – 内核版本
6 – 主版本
32 – 次版本
431.el6 – 修复/修订细节
[/shell]
3、uname 命令
[shell]
[root@localhost ~]# uname –help
Usage: uname [OPTION]…
Print certain system information. With no OPTION, same as -s.

-a, –all print all information, in the following order,
except omit -p and -i if unknown:
-s, –kernel-name print the kernel name
-n, –nodename print the network node hostname
-r, –kernel-release print the kernel release
-v, –kernel-version print the kernel version
-m, –machine print the machine hardware name
-p, –processor print the processor type or "unknown"
-i, –hardware-platform print the hardware platform or "unknown"
-o, –operating-system print the operating system
–help display this help and exit
–version output version information and exit
[/shell]


转载请注明原文链接:http://www.z-dig.com/check-system-version-and-kernel-version.html



正文部分到此结束