TobiSGD's statement is correct. In addition, to check the CPU try
and check the list of flags: if you see
lm (= long mode) the CPU is 64-bit, if you don't see it the CPU is 32-bit. No mistake! This is useful if - by chance - you have a 32-bit operating system running on a 64-bit CPU.
On the contrary - as stated above - the
uname command, gives information about the running kernel, whereas if you want to see the actual release of your Linux distribution, check for
/etc/*release file(s). For example, on CentOS:
Code:
$ cat /etc/*release
CentOS release 6.2 (Final)
On openSuSE:
Code:
$ cat /etc/*release
openSUSE 12.1 (i586)
VERSION = 12.1
CODENAME = Asparagus
Some systems have also the
lsb_release command, example:
Code:
$ lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.2 (Final)
Release: 6.2
Codename: Final