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