Three Command to Check your Ubuntu Version

Share this Article :

Checking what version of Ubuntu you are running is very easy. From my own experience, there are multiple ways to check the Ubuntu version. You can either check from graphical interface version, or from command line in the local terminal session or via SSH. The following result has been tested from the command line that was run from the command remotely over SSH.

1. Check ubuntu version using “cat /etc/issue” command :

[email protected]:~$ cat /etc/issue
Ubuntu 14.04 LTS \n \l

2. Check Ubuntu version using “cat /etc/lsb-release” command :

[email protected]:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04 LTS"

3. Check Ubuntu version using “lsb_release -a” command :

[email protected]:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04 LTS
Release:        14.04
Codename:       trusty

or you can have more option to filter out the result :

[email protected]:~$ lsb_release -d
Description:    Ubuntu 14.04 LTS
[email protected]:~$ lsb_release -c
Codename:       trusty
[email protected]:~$ lsb_release -r
Release:        14.04

Additionaly, you can check all the info regarding kernel version :

[email protected]:~$ uname -a
Linux ubuntu14 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

or

[email protected]:~$ cat /proc/version
Linux version 3.13.0-24-generic ([email protected]) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014

Leave a Reply