linux 发行版本信息的查看
uname 用于显示系统的详细信息。
[oracle@zeng ~]$ uname -a
Linux zeng 2.6.32-71.el6.i686 #1 SMP Wed Dec 15 09:50:18 EST 2010 i686 i686 i386 GNU/Linux
-a 表示所有的信息。
输出信息解释
内核名称:Linux
主机名称:zeng
内核版本:2.6.32-71.el6.i686
操作系统发行版本:#1 SMP Wed Dec 15 09:50:18 EST 2010
硬件类型:i686
处理器类型:i686
硬件平台:i386
操作系统名:GNU/Linux
--help 打印帮助信息。
[oracle@zeng ~]$ 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
查看内核版本,在安装数据库等软件的时候经常用到。
[oracle@zeng ~]$ uname -r
2.6.32-71.el6.i686
也可以通过查看虚拟文件 /proc/version 来查看系统的版本信息。
[oracle@zeng ~]$ cat /proc/version
Linux version 2.6.32-71.el6.i686 (mockbuild@ca-build19.us.oracle.com)
(gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) )
#1 SMP Wed Dec 15 09:50:18 EST 2010
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26110315/viewspace-718309/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26110315/viewspace-718309/
本文介绍如何使用uname命令查看Linux系统的详细信息,包括内核名称、主机名称、内核版本等,并展示了如何查看特定的内核版本及通过/proc/version获取更详细的版本信息。

被折叠的 条评论
为什么被折叠?



