How To Identify the Linux Distribution Being Used using lsb_release Command

By Sajan Gurung on January 7th, 20121 Comment

This post will show you how to use lsb_release command to identify the Linux distribution being used.

lsb-release

lsb_release is the command that provides certain provides certain LSB (Linux Standard Base) and disrtibution-specific information. You can use this command to easily identify and gather information about the Linux distribution that is being used.

In order to display  distributor’s id, distribution’s version , release number and codename of the Linux distribution being used at once, run the following commands in the terminal.

lsb_release -a

OR,

lsb_release -all

It displays the information on version, distributor’s id, release number and codename of the Linux distribution being used at once as shown in the screenshot above.

In this way, you can identify the Linux distribution being used with lsb_release command.

To know about the other options that can be used with lsb_release command, you can run following command in the terminal.

lsb_release -h

You can view man page for lsb_release in terminal by running following command.

man lsb_release

You can also visit its man page from the link given below.

Man page: lsb_release

Related posts:

Follow the Author:  
share