Check Ubuntu version from command line

Here is a simple command to get your Ubuntu version from terminal / commandline.

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

or

$ lsb_release -r
Release:        11.10

or

$ cat /etc/issue
Ubuntu 11.10 n l

or

$ cat /etc/issue.net
Ubuntu 11.10

Try any of them. Cheers!







Last Updated On : 8th November 2011

Subscribe to get updates delivered to your inbox

Leave a comment