how to identify 32 vs 64 bit CPU?

Vivek J. Patankar list307 at gmail.com
Fri Aug 10 03:50:49 UTC 2007


Rick Stevens wrote:
> If you get a result from 
> 
>     cat /proc/cpuinfo | grep " lm "
> 
> you're on a 64-bit processor regardless whether it's a 32- or 64-bit OS.
> If you want to know if the OS is 64-bit, then a result from 
> 
> 	uname -a | grep 64
> 
> would indicate a 64-bit OS.

How about just `uname -m`? That will give just the required information 
and leave out the rest.

    [veejay at marvin ~]$ uname -m
    x86_64


-- 
Regards,
विवेक ज. पाटणकर (Vivek J. Patankar)

Registered Linux User #374218
Fedora release 7 (Moonshine)
Linux 2.6.22.1-33.fc7 x86_64




More information about the fedora-list mailing list