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

link|improve this question
feedback

migrated from stackoverflow.com Sep 9 '11 at 11:32

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

3 Answers

up vote 1 down vote accepted

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.

link|improve this answer
thanks......... – Narven Sep 9 '11 at 12:52
feedback

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.

link|improve this answer
feedback
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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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