Computer Hope

Software => BSD, Linux, and Unix => Topic started by: Stan Huang on September 17, 2013, 09:41:44 PM

Title: How can I know my Linux is running 32-bit or 64-bit?
Post by: Stan Huang on September 17, 2013, 09:41:44 PM
As title. Is there any command to know it? Can uname satisfy this question?
Title: Re: How can I know my Linux is running 32-bit or 64-bit?
Post by: Ken S on September 30, 2013, 04:41:38 AM
My computer is running 64 bit Ubuntu. Here is the result of executing uname:
ken@COMPAQ-CQ57:~$ uname -p
x86_64
ken@COMPAQ-CQ57:~$

Notice x86_64. I'm not certain, but I think a 32bit machine will display i386. uname -p shows processor type. Any terminal you can open should be able to execute uname. The command arch will achieve the same.
Executing man uname will display all the options, spacebar will move on a page.