Tuesday, November 22, 2011

Find if the kernel is 32 or 64 bit.

Find whether the kernel is 32 or 64 bit.

On Redhat run the following commands.

$getconf LONG_BIT
64

$ uname -m
x86_64

$ uname -m
i686

$ file /bin/ls
/bin/ls: ELF 32-bit


The command below gives you if you are running 64 or 32 bit platform.
$ cat /proc/cpuinfo
32
On Solaris

$ isainfo -v

No comments:

Post a Comment