[wellylug] Ubuntu 9.04 32 or 64 bit - How do I find out which was installed?

Sam Vilain sam at vilain.net
Wed Nov 4 06:50:19 NZDT 2009


On Sat, 2009-10-31 at 13:53 +1300, Jethro Carr wrote:
> On Sat, 2009-10-31 at 11:11 +1300, marchetti wrote:
> > At the recent Installfest, Ubuntu 9.04 was installed from an
> > Installfest disc, but I do not know if the installed OS is
> > 32 or 64. 
> 
> From the CLI:
> 
> $ uname -p
> 
> i386/i686 is 32-bit
> 
> x86_64 is 64-bit

On my system 'uname -p' produces "unknown"; `uname -m` is the canonical
method of telling you what arch the kernel you're running is.

Another one you can use is 'file' on your libc;

denix:~$ file -L /lib/libc.so.6
/lib/libc.so.6: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped

Sam



More information about the wellylug mailing list