How can I check if my kubuntu is running in a 64 bits or 32 machine using terminal?
Asked
Active
Viewed 6,047 times
4 Answers
1
Run
uname -a
My machine gives this:
Linux james-desktop 2.6.38-11-generic #48-Ubuntu SMP Fri Jul 29 19:02:55 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
It should be easy to figure out if your box is 32 bit or 64 bit from the string your box gives you.
Bojangles
- 555
- 1
- 8
- 18
-
3To clarify this: a line with `_64` would indicate a 64-bit install, whereas a line with `i686` would indicate a 32-bit install. – SabreWolfy Feb 17 '14 at 08:14
1
This page says to run
$ grep flags /proc/cpuinfo
and if the lm flag (long mode, I think) is present, you have a 64-bit CPU. The same page also describes JamWaffles's answer of using the kernel's targeted architecture.
1
You can check what is your kubuntu architecture (a 64 bits or 32 machine) using terminal run
getconf WORD_BIT
It will show 32 or 64-bit kUbuntu.
EdmundsZ
- 109
- 1
- 3
-
By far the most useful - the CPU is 64 bit, it's got a "lm" flag, but it's WORD_BIT is set to 32, which explains a few things. – SEoF Jan 29 '16 at 09:15
0
cat /proc/cpuinfo
look for "lm" under flags LM stands for Long Mode - which is support for a 64 bit programme to access 64 bit instructions
Journeyman Geek
- 127,463
- 52
- 260
- 430