Check Ubuntu version from command line

To discover what ubuntu linux version you have installed on a machine using only a command line you need to execute the following command on a shell:

lsb_release -a

This is a possible output for the command:

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid