Linux Commands Examples

A great documentation place for Linux commands


print distribution-specific information


lsb_release [options]

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


lsb_release -a


The lsb_release command provides certain LSB (Linux Standard Base) and distribution-specific information.

If no options are given, the -v option is assumed.


The program follows the usual GNU command line syntax, with long options starting with two dashes (’--’). A summary of options are included below.
-v, --version

Show the version of the LSB against which your current installation is compliant. The version is expressed as a colon separated list of LSB module descriptions.

-i, --id

Display the distributor’s ID.

-d, --description

Display a description of the currently installed distribution.

-r, --release

Display the release number of the currently installed distribution.

-c, --codename

Display the code name of the currently installed distribution.

-a, --all

Display all of the above information.

-s, --short

Use the short output format for any information displayed. This format omits the leading header(s).

-h, --help

Show summary of options.


This is a reimplementation of the lsb_release command provided by the Free Standards Group. Any bugs are solely the responsibility of the author below.

Detection of systems using a mix of packages from various distributions or releases is something of a black art; the current heuristic tends to assume that the installation is of the earliest distribution which is still being used by .B apt but that heuristic is subject to error.

see also



Chris Lawrence <lawrencc[:at:]debian[:dot:]org>.

How can this site be more helpful to YOU ?

give  feedback