当前位置: 技术问答>linux和unix
linux版本号和内核
来源: 互联网 发布时间:2016-06-13
本文导语: linux版本和内核版本是一样吗?在linux系统下使用什么命令查看? | lz看看这个,很齐的了 [root@RHEL4_U5 ~]# cat /etc/redhat-release Red Hat Enterprise Linux ES release 4 (Nahant Update 5) [root@RHEL4_U5 ...
linux版本和内核版本是一样吗?在linux系统下使用什么命令查看?
|
lz看看这个,很齐的了
[root@RHEL4_U5 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
[root@RHEL4_U5 ~]# cat /etc/issue
Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
Kernel r on an m
Welcome to come back!Have a nice time!
[root@RHEL4_U5 ~]# uname -a
Linux RHEL4_U5 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
[root@RHEL4_U5 software]# lsb_release -h
FSG lsb_release v2.0 prints certain LSB (Linux Standard Base) and
Distribution information.
Usage: lsb_release [OPTION]...
With no OPTION specified defaults to -v.
Options:
-v, --version
Display the version of the LSB specification against which the distribution is compliant.
-i, --id
Display the string id of the distributor.
-d, --description
Display the single line text description of the distribution.
-r, --release
Display the release number of the distribution.
-c, --codename
Display the codename according to the distribution release.
-a, --all
Display all of the above information.
-s, --short
Use short output format for information requested by other options (or version if none).
-h, --help
Display this message.
[root@RHEL4_U5 software]# lsb_release -a
LSB Version: :core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
Distributor ID: RedHatEnterpriseES
Description: Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
Release: 4
Codename: NahantUpdate5
[root@RHEL4_U5 software]#
[root@RHEL4_U5 software]# cat /proc/version
Linux version 2.6.9-55.ELsmp (brewbuilder@ls20-bc2-14.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)) #1 SMP Fri Apr 20 17:03:35 EDT 2007
[root@RHEL4_U5 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
[root@RHEL4_U5 ~]# cat /etc/issue
Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
Kernel r on an m
Welcome to come back!Have a nice time!
[root@RHEL4_U5 ~]# uname -a
Linux RHEL4_U5 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
[root@RHEL4_U5 software]# lsb_release -h
FSG lsb_release v2.0 prints certain LSB (Linux Standard Base) and
Distribution information.
Usage: lsb_release [OPTION]...
With no OPTION specified defaults to -v.
Options:
-v, --version
Display the version of the LSB specification against which the distribution is compliant.
-i, --id
Display the string id of the distributor.
-d, --description
Display the single line text description of the distribution.
-r, --release
Display the release number of the distribution.
-c, --codename
Display the codename according to the distribution release.
-a, --all
Display all of the above information.
-s, --short
Use short output format for information requested by other options (or version if none).
-h, --help
Display this message.
[root@RHEL4_U5 software]# lsb_release -a
LSB Version: :core-3.0-ia32:core-3.0-noarch:graphics-3.0-ia32:graphics-3.0-noarch
Distributor ID: RedHatEnterpriseES
Description: Red Hat Enterprise Linux ES release 4 (Nahant Update 5)
Release: 4
Codename: NahantUpdate5
[root@RHEL4_U5 software]#
[root@RHEL4_U5 software]# cat /proc/version
Linux version 2.6.9-55.ELsmp (brewbuilder@ls20-bc2-14.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)) #1 SMP Fri Apr 20 17:03:35 EDT 2007
|
uname -a
cat /etc/redhat-release
cat /etc/redhat-release
|
发行版本的版本号完全是各发行商自己定义的,不能用来和其它发行版本的版本号进行比较,比如SuSE的10.0不能和Red Hat的9.0比,也不能和Ubuntu的7.04比,没有可比性。发行版本号只是各个厂商为了区别自己的产品而编的号。
查看内核版本号的方法是:
打印一个终端,输入命令uname -r
查看发行版本号的方法是:
用命令找到/etc目录下的issue文件或release文件。 ls /etc/*issue* 或 ls /etc/*release*
然后直接用cat命令查看文件内容就知道版本号了:
查看内核版本号的方法是:
打印一个终端,输入命令uname -r
查看发行版本号的方法是:
用命令找到/etc目录下的issue文件或release文件。 ls /etc/*issue* 或 ls /etc/*release*
然后直接用cat命令查看文件内容就知道版本号了: