免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1195 | 回复: 0
打印 上一主题 下一主题

Linux下查看系统版本号相关命令 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-27 18:08 |只看该作者 |倒序浏览
可以通过以下命令查看版本号:
1. cat /etc/redhat-release
#这是属于redhat系列里专有的一个文件,debian则是/etc/debian_version
2. uname -a
3. cat /etc/issue
#说明:这条指令可以查看Linux属于哪个distribution,maybe Debian、RHEL or others。
4. cat /proc/version(好像这个全一些)
5. lsb_release -a
[root@localhost ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.2 (Tikanga)
[root@localhost ~]# cat /proc/version
Linux version 2.6.18-92.el5PAE (brewbuilder@hs20-bc2-3.build.redhat.com) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-41)) #1 SMP Tue Apr 29 13:31:02 EDT 2008
[root@localhost ~]# lsb_release -a
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: RedHatEnterpriseServer
Description:    Red Hat Enterprise Linux Server release 5.2 (Tikanga)
Release:        5.2
Codename:       Tikanga
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-92.el5PAE #1 SMP Tue Apr 29 13:31:02 EDT 2008 i686 i686 i386 GNU/Linux
[root@localhost ~]# uname -s
Linux
[root@localhost ~]# uname -n
localhost.localdomain
[root@localhost ~]# uname -r         #kernel version(2.6)+release(18-92),PAE表示该服务器使用了物理地址扩展的kernel版本,下面有PAE的解释
2.6.18-92.el5PAE
[root@localhost ~]# uname -v         #还没弄明白这是什么信息,只知道这是跟kernel版本有关的一个时间,但绝不是我们通常所说的“kernel version”,难道这是一种新的以时间来标识kernel版本的方法?不太像啊,有待确认。
#1 SMP Tue Apr 29 13:31:02 EDT 2008
[nianzong@mysql ~]$ uname -v
#1 SMP Fri Jan 26 14:15:14 EST 2007
[root@localhost ~]# uname -m         #
i686
[nianzong@mysql ~]$ uname -mx86_64
[root@localhost ~]# uname -p         #可识别CPU是32位还是64位
i686
[nianzong@mysql ~]$ uname -p
x86_64
[root@localhost ~]# uname -i         #可识别服务器硬件是32位还是64位平台
i386
[nianzong@mysql ~]$ uname -i
x86_64
[root@localhost ~]# uname -o
GNU/Linux
[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
Report bugs to .
kernel-PAEIf Anaconda (the centos installer) detects a PAE compatible processor it will install kernel and kernel-pae
kernel-PAE (x86-only): Contains a kernel with support for 64GB of
memory on x86 systems through Physical Address Extensions (PAE). Only
x86 CPUs that support PAE can run this kernel. This kernel is provided
because x86 systems can't address more than 4GB of memory without PAE
extensions.
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/61187/showart_1912253.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP