the "proper" way to identify the bitness of your kernel and CPU

Robert P. J. Day rpjday at crashcourse.ca
Fri Apr 3 19:25:35 UTC 2009


On Fri, 3 Apr 2009, Sharpe, Sam J wrote:

> 2009/4/3 Robert P. J. Day <rpjday at crashcourse.ca>:
> >
> >  what is the fedora-approved way to identify the wordsize of both
> > your running kernel and your CPU?  for the kernel, i'm used to running
> >
> >  $ uname -r
> >
> > and just looking at the suffix, which in my case would be either
> > "i686" or "x86_64".  is there a simpler way?
>
> # man arch
>    NAME
>        arch - print machine hardware name (same as uname -m)
>
> # arch
> x86_64
>
> # uname -m
> x86_64

  hang on ... if i have a 32-bit kernel running on a 64-bit CPU, what
will the above print?  i'd want it to print, well, i686 or something
that represents 32 bits.  is that what it would do?

rday
--

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry:
    Have classroom, will lecture.

http://crashcourse.ca                          Waterloo, Ontario, CANADA
========================================================================


More information about the fedora-list mailing list