home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] what is the "uname" variation that shows a 32-bit install on 64-bit system?

  • Subject: Re: [OCLUG-Tech] what is the "uname" variation that shows a 32-bit install on 64-bit system?
  • From: "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca>
  • Date: Mon, 9 May 2011 11:30:42 -0400 (EDT)
On Mon, 9 May 2011, Peter Sjöberg wrote:

> I guess the question then is what rob means with "system". I was
> thinking system=computer system and I made the assumption that that
> if you install any distro the kernel is included so if the kernel is
> 64bit then most userland sw is probably 64bit also. But if you want
> to know whatever some specific program is 64 or 32bit "file" is the
> one to go with, and that will tell you half the story. If the
> program is 32bit it might be because the system is 32bit, not
> because you got wrong bitness installed.
>
> Robert, Do you have your answer yet?
> * to check a individual program: file /bin/ls
> * to check the running kernel: uname -m
> * to check the cpu:  grep "^flags.* lm " /proc/cpuinfo

  as best as i can tell, "uname -m" will tell me what i want.  i've
had others confirm that, with a 32-bit install on a 64-bit system,
"uname -m" will report back a 32-bit arch, which is what i was after.
if anyone notices anything different, let me know.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================