how to identify 32 vs 64 bit CPU?

Tony Nelson tonynelson at georgeanelson.com
Thu Aug 9 16:33:33 UTC 2007


At 7:58 AM -0400 8/9/07, 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.

How about uname?  `uname -a` gives all of it.  See `man uname` for subsets
and the ordering of the "-a" output.  If you need more than just x86, I
think any solution will be a bit involved.
-- 
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson at georgeanelson.com>
      '                              <http://www.georgeanelson.com/>




More information about the users mailing list