On 05/06/2011 02:49 PM, Bart Trojanowski wrote: > 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 :-) What am I missing?, "uname -m" is what I use to check what kernel version that's installed, "x86_64" for 64bit and "i.86" for 32bit. Checking files is ok but it can be misleading since you may have 32bit files (like /usr/bin/flashplayer or /usr/sbin/grub) on 64bit system. Or do you wonder whatever it's a 64bit capable CPU, then you need to check for the "lm" flag grep "^flags.* lm " /proc/cpuinfo > -Bart > _______________________________________________ > Linux mailing list > Linux [ at ] lists [ dot ] oclug [ dot ] on [ dot ] ca > http://oclug.on.ca/mailman/listinfo/linux
Attachment:
signature.asc
Description: OpenPGP digital signature