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: Bart Trojanowski <bart [ at ] jukie [ dot ] ca>
  • Date: Fri, 6 May 2011 18:49:13 +0000
On Fri, May 6, 2011 at 18:24, Richard Guy Briggs <rgb [ at ] tricolour [ dot ] net> wrote:

> Not quite what you intended, but how about:
>        file $(which uname)
>

I often do exactly this with '/bin/ls' to test the OS bitness.

Another alternative is to use gcc -dumpmachine ... which is available on all
systems that matter :-)

-Bart