linux 发行版本信息的查看

本文介绍如何使用uname命令查看Linux系统的详细信息,包括内核名称、主机名称、内核版本等,并展示了如何查看特定的内核版本及通过/proc/version获取更详细的版本信息。
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/

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值