lsb_release command line tool and its examples

  • About lsb_release : Manual page for FSG lsb_release v2.0
  • It comes from “redhat-lsb-4.0” package.
  • Configuration Files:
  • Path: /usr/bin/lsb_release

Examples:

1. To get the LSB distribution information

$ lsb_release

2. To get all the LSB distribution information

$ lsb_release -a
$ lsb_release –all 

3. To display the string id of the distributor

$ lsb_release -i
$ lsb_release –id 

4. To display the single line text distribution

$ lsb_release -d
$ lsb_release –description 

5. To display the release number of the distribution

$ lsb_release -r
$ lsb_release –release 

6. To Display the codename according to the distribution release

$ lsb_release -c
$ lsb_release –codename 

7. To Use short output format for information requested

$ lsb_release -s
$ lsb_release –short 

8. To get the help

$ lsb_release -h
$ lsb_release –help 


Leave a Reply

Your email address will not be published. Required fields are marked *