Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3721
  • 博文数量: 2
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 10
  • 用 户 组: 普通用户
  • 注册时间: 2014-06-06 17:12
文章分类
文章存档

2014年(2)

我的朋友
最近访客

分类: LINUX

2014-12-28 19:03:47

可以通过以下命令查看版本号:

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 -m
x86_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-PAE

If 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.


阅读(316) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:Linux环境下Oracle exp/imp导出导入工具的使用

给主人留下些什么吧!~~