lsb_release - find Linux Standard Base (LSB) information

LSB – Linux Standard Base – is a joint project by a number of Linux vendors to standardize the OS environment. Apart from sharing many common principles in their structure, LSB participating Linux distributions share quite a few commands. lsb_release is one of them, and it allows you to find out all the LSB information about your Linux distribution.

I’m going to use a Ubuntu Feisty (7.04) in my examples.

Release number of a Linux distribution

Sure, there’s a uname command to find this out, but lsb_release is just another way to reconfirm your Linux release number:

ubuntu$ lsb_release -r
Release:        7.04

Codename of a Linux distribution

If you’re just after the codename of your Linux distribution, then -c is the command line option for you. I particularly like it because many novices have really hard times figuring out their Ubuntu codename, while most of the seasoned users only use the codenames and rarely specify the release number.

ubuntu$ lsb_release -c
Codename:       feisty

Full Linux Standard Base release information

If you want to find out everything there is to know about your LSB participating Linux distro, use the -a command line option:

ubuntu$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 7.04
Release:        7.04
Codename:       feisty

See also




Contact Me

Follow me on Facebook, Twitter or Telegram:
Recommended
I learn with Educative: Educative
IT Consultancy
I'm a principal consultant with Tech Stack Solutions. I help with cloud architectrure, AWS deployments and automated management of Unix/Linux infrastructure. Get in touch!
Recent Articles
03 Sep 2024

macOS Sequoia 15.0

02 Sep 2024

Video: Has This Worked Before?

24 Mar 2024

Homelab: Mac Pro 2013 32GB

Recent Tweets