Home » Questions » Computers [ Ask a new question ]

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

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

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

Asked by: Guest | Views: 391
Total answers/comments: 2
bert [Entry]

"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"
bert [Entry]

"source from /etc/lsb-release to export version information variables into your shell:

$ . /etc/lsb-release

Contains the following variables

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION=""Ubuntu 14.04 LTS"""