How to check your Ubuntu Release Version via CLI

Ever wanted to know what version of Ubuntu/Debian you are working on is through the command line?
It’s not as obvious as it sounds 🙁

If you type uname you get

sean@0x0:~$ uname -a
Linux 0x0 4.2.0-25-generic #30-Ubuntu SMP Mon Jan 18 12:31:50 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
sean@0x0:~$ ^C

It tells you you are using Ubuntu but not the release version thats where lsb_release comes in

sean@0x0:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
sean@0x0:~$ ^C

Hope this helps!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.