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


$ lsb_release -r
Release:        11.10


$ cat /etc/issue
Ubuntu 11.10 n l


$ cat /etc/
Ubuntu 11.10

Try any of them. Cheers!

Last Updated On : 8th November 2011

Subscribe to get updates delivered to your inbox

About Silver Moon

Php developer, blogger and Linux enthusiast. He can be reached at [email protected]. Or find him on

Leave a comment