How do you find the Ubuntu version (release number / name) from the command line?

Solution 1:

Run lsb_release with the -a switch.

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 9.04
Release:    9.04
Codename:   jaunty

Solution 2:

$ cat /etc/issue
Ubuntu 8.10 \n \l