How To Know Ubuntu and Unity Version [Quick Tip]

Care to Share?

Linux Treminal LogoIn this command line tutorial we shall find answers to some very basic questions beginner Ubuntu users wonder about. For example, which Ubuntu version am I using, which Unity version is installed in my system? How to know if I am using 32 bit or 64 bit Ubuntu?

How to know Ubuntu version:

There are several methods to find the Ubuntu version in use. You can try the following command in terminal (use Ctrl+Alt+T to open it):

lsb_release -a

The out put of the above command should be like this:

Distributor ID:    Ubuntu
Description:    Ubuntu 12.10
Release:    12.10
Codename:    quantal

As you can see, the current Ubuntu installed in my system is Ubuntu 12.10 and it’s code name is Quantal. You can read this article to know about Ubuntu naming convention.

Some alternate commands to find Ubuntu version:

Alternatively, you can use either of the following commands to find Ubuntu version:

cat /etc/lsb-release
cat /etc/issue

How to know the Unity version installed in Ubuntu:

This is pretty much straight forward. It is same as to find out the version of any (read, most) installed program in Ubuntu. Use the following command:

unity --version

The output should be something like this:

unity 6.12.0

Which means I am using Unity 6 at present.

How to know if the Ubuntu installed is 32 bit or 64 bit:

Many people wonder if they are using 32 bit Ubuntu or 64 bit. To find it out, use the following command:

uname -m

You can interpret the output in the following manner:

i686 or i386 => 32 Bit

x86_64 => 64 Bit

I hope it answers your questions. If you have suggestions to improve this article, feel free to drop it in the comment section. Ciao :)