Linux Tip: Figure out if your install is 32 or 64 bit – uname

I can never remember what version of Linux I am running. It’s a pain if you are doing installs and faced with a few different versions of software. And I’m a developer, not an escalator dammit.

Just use the uname -a command and here’s how you can figure it out:


user@ubuntu:~$ uname -a
Linux ubuntu 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux

Ok see the i686? Unadorned it means 32-bit. If its 64-bit you’ll see x86_64 or something like that. BTW — the #32-Ubuntu is the kernal version, not the bit count. Results will vary after all.

Comments are closed.