Common parameters
Format: lsb_release
Format: lsb_release-v
View the version information for the LSB itself.
Format: lsb_release-a
Print all information about the distribution of this system, such as the ID of the distribution, description information, specific version, code name.
Format: lsb_release-d-S
Format: Head-1/etc/issue
View the description of the release, followed by example two, showing this usage.
Examples of Use:
Example one:
[Email protected] ~]# lsb_release
LSB Version:: Core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
[Email protected] ~]# 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.4 (Tikanga)
release:5.4
Codename:tikanga
[Email protected] ~]# lsb_release-v
LSB Version:: Core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
[Email protected] ~]# lsb_release-i
Distributor Id:redhatenterpriseserver
[Email protected] ~]# lsb_release-d
description:red Hat Enterprise Linux Server Release 5.4 (Tikanga)
[Email protected] ~]# lsb_release-r
release:5.4
[Email protected] ~]# lsb_release-c
Codename:tikanga
[Email protected].com ~]# Lsb_release-r-S
5.4
[Email protected] ~]# uname-a
Linux jfht 2.6.18-164.el5pae #1 SMP Tue 15:59:11 EDT i686 i686 i386 gnu/linux
[Email protected] ~]# cat/proc/version
Linux version 2.6.18-164.el5pae ([email protected]) (GCC version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Tue 18 15:5 9:11 EDT 2009
[Email protected] ~]# cat/etc/issue
Red Hat Enterprise Linux Server Release 5.4 (Tikanga)
Kernel \ r on an \m
[Email protected] ~]# cat/etc/redhat-release
Red Hat Enterprise Linux Server Release 5.4 (Tikanga)
[Email protected] ~]#
Example two:
[[email protected] ~]# lsb_release-d-S
"Red Hat Enterprise Linux Server Release 5.4 (Tikanga)"
[Email protected] ~]# head-1/etc/issue
Red Hat Enterprise Linux Server Release 5.4 (Tikanga)
[Email protected] ~]#
Example three:
[Email protected] root]# lsb_release
LSB version:1.3
[Email protected] root]# lsb_release-a
LSB version:1.3
Distributor Id:redhatenterpriseas
description:red Hat Enterprise Linux as Release 3 (Taroon Update 4)
Release:3
Codename:taroonupdate4
[Email protected] root]#
Linux command lsb_release: View release information for the current system