Friday, February 18, 2011

A quick way to identity which system you are using. 32bits? 64bits?

To check if your computer is using 32bits or 64bits, it is easy job once you use the following commands. There are many ways to check under Linux, I list some which is easy to remember.

Method 1:
$ uname -m 

Output:
  • i386/i686 = 32bits
  • x86_64 = 64bits
Method 2:
$ file /bin/bash

Output:
  • ELF 32-bit LSB executable, Intel 80386 = 32bits
  • ELF 64-bit LSB executable, x86-64 = 64bits

Method 3:
$ getconf LONG_BIT

Output:
  • 32 = 32bits
  • 64 = 64bits

Choose your own command which you are easy to remember! Enjoy!

No comments:

Post a Comment