Address: http://wjpinrain.blogchina.com/930749.html
LSB is short for Linux Standard base. The lsb_release command is used to display information about LSB and specific versions. If this command is used without parameters, the-V parameter is added by default.
-V, -- version
Show version information
-I, -- ID
Display the release ID
-D, -- Description
Displays the description of the release.
-R, -- Release
Displays the release version of the current system.
-C, -- codename
Release code
-A, -- all
Show all the above information
-H, -- Help
Show Help Information
If the current release is LSB compatible, the "/etc/lsb_release" file will contain the lsb_version domain. The value of this field can be a series of supported modules separated by colons. These module names are the modules of the LSB supported by the current version. If the current version is not LSB compatible, do not include this domain.
Optional fields include distrib_id, distrib_release, distrib_codename,
Distrib_description, which can overwrite the content in the/etc/distrib-release file. Note: replace distrib with the current
The name of the release.
If the/etc/lsb-release.d directory exists, the directory looks for the file name and adds it to lsb_version as an additional module version. The/etc/distrib-release file contains descriptions to describe which file names should be analyzed.
The general format is: "distributor release x. x (codename )"
Note: The Debian system lacks the corresponding description information (see/etc/Debian-version). To support the Debian system, most of the information is added to the LSB-release file.
In RedHat and Fedora systems, a parameter is also supported:
-S, -- short
Output brief description