Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I check if my kubuntu is running in a 64 bits or 32 machine using terminal?

share|improve this question

migrated from Sep 9 '11 at 11:32

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted


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.

share|improve this answer
thanks......... – Pedro Luz Sep 9 '11 at 12:52
To 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 8:14

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.

share|improve this answer

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.

share|improve this answer
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 at 9:15
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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.