天天看点

Linux下查看系统版本号信息的方法

1、cat /proc/version

[root@localhost ~]# cat /proc/version ([email protected]) (gcc version 4.1.2 20080704 (red hat 4.1.2-48)) #1 smp wed jul 7 11:50:45 edt 2010

2、uname -a

[root@localhost ~]# uname -a linux localhost.localdomain 2.6.18-194.8.1.el5.centos.plus #1 smp wed jul 7 11:50:45 edt 2010 i686 i686 i386 gnu/linux

二、查看linux系统版本的命令(3种方法):

1、lsb_release -a,即可列出所有版本信息:

[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: centos description: centos release 5.5 (final) release: 5.5 codename: final

2、cat /etc/redhat-release,这种方法只适合redhat系的linux:

[root@localhost ~]# cat /etc/redhat-release centos release 5.5 (final)

3、cat /etc/issue,此命令也适用于所有的linux发行版。

[root@localhost ~]# cat /etc/issue kernel \r on an \m
下一篇: powershell

继续阅读