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

[email protected]:~$ 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
[email protected]:~$ ^C

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

[email protected]:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 15.10
Release: 15.10
Codename: wily
[email protected]:~$ ^C

Hope this helps!

Leave a Reply

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