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.
Sure, there’s a uname command to find this out, but lsb_release is just another way to reconfirm your Linux release number:
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.
If you want to find out everything there is to know about your LSB participating Linux distro, use the -a command line option: