how to identify 32 vs 64 bit CPU?

Mogens Kjaer mk at crc.dk
Thu Aug 9 12:11:21 UTC 2007


Robert P. J. Day wrote:
>   i'm sure there's a trivial way to do this, but what's a simple way
> to tell if a system has a 32 or a 64 bit CPU?  something that i could
> run from within a script.  thanks.

If the script runs on a 64 bit CPU, equipped with a 32 bit OS,
should it return 32 or 64?

Mogens

-- 
Mogens Kjaer, Carlsberg A/S, Computer Department
Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
Email: mk at crc.dk Homepage: http://www.crc.dk




More information about the fedora-list mailing list