How to check if Linux kernel is 32 bit or 64 bit

No matter the Linux distribution if you want just to check if your Operating System is running either 32 or 64bit kernel just issue the following command:

For 64bit kernel the output should be:
[root@diver ~]# uname -m
x86_64

For 32bit kernel the output should be:
stelios@pappous:~> uname -m
i686

A little bit more about uname command.

uname (short for unix name) is a software program in Unix and Unix-like computer operating systems that prints the name, version and other details about the current machine and the operating system running on it. The uname system call and command appeared for the first time in PWB/UNIX.

Some Unix variants, such as AT&T UNIX System V Release 3.0 include the related setname program, used to change the values that uname reports.

The GNU version of uname is included in the "sh-utils" or "coreutils" packages. uname itself is not available as a standalone program.

Posted on: 09/12/2010








0 Comments
If you want to leave a comment please Login or Register