Thursday, 2 October 2008

HOWTO: Find which Debian or ubuntu Linux Version you are running

Find or identify which version of Debian Linux you are running

This can be checked in

/etc/debian_version file


Find or identify which version of ubuntu Linux you are running

You can find in different ways in ubuntu

Solution 1

cat /etc/issue

The file /etc/issue holds the version of Ubuntu installed on your system

Solution 2

lsb_release -a

or

cat /etc/lsb-release


Where lsb for Linux Standard Base

3 comments:

Anonymous said...

Thanks.

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 said...

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

Anonymous said...

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

My photo
London, United Kingdom
twitter.com/zhengxin

Facebook & Twitter