The lsb_release command provides certain LSB (Linux Standard Base) and distribution-specific information.
lsb_release -a
Below is an example of the output of command lsb_release
[email protected]:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty
[email protected]:~$