How to know what version of Ubuntu you're using

Submitted by str on Thu, 05/08/2008 - 10:48

With Ubuntu's LTS (Long Time Support) and usual 6 months release cycle, sometimes you tend to confuse or forget what version of Ubuntu you are using.

How to know what version of Ubuntu you're using?

Easy! Fire up your your terminal and type this command:

lsb_release -a

Related Items

Comments

Anonymous (not verified)

Fri, 05/06/2011 - 13:07

To know if the installed Ubuntu is of 32 or 64 bits:
uname -m
If it shows i686 or i386 it means 32 bits.
If it shows x86_64 it means 64 bits.

If the CPU is of 32 bits Ubuntu must be of 32 bits.
If the CPU is of 64 bits it can work in 64 or 32 bits. So we can choose: Ubuntu can be of 32 bits or of 64 bits.

To know if the CPU is of 32 or 64 bits:
a) grep -w lm /proc/cpuinfo
If we see lm in red is of 64 bits. Otherwise is of 32 bits.
b) sudo lshw | grep “description: CPU” -A 12 | grep width
It says clearly what we want to know.

Anonymous (not verified)

Fri, 05/06/2011 - 13:50

In reply to by Anonymous (not verified)

Another way to know if the installed Ubuntu is of 32 or 64 bits:
getconf LONG_BIT

Anonymous (not verified)

Fri, 06/03/2011 - 16:39

In reply to by Anonymous (not verified)

In the command ...
sudo lshw | grep "description: CPU" -A 12 | grep width
... the quotation marks have to be vertical so it works.

Probably they have been converted again in typographic ones. I hope they appear well now (I’m using the HTML code for them: ampersand number sign 34 semicolon):
sudo lshw | grep "description: CPU" -A 12 | grep width