how to determine if the computer is 32 or 64 bit
Is there a quick way to determine if the computer is 64 or 32 bit?
|
Via Linux or Windows?
Anyway, rather than reinvent the wheel, have a read of this... http://www.computerhope.com/issues/ch001121.htm |
Quote:
Thanks ferrari, I bookmarked that one. ;) Regards... |
On linux "lscpu" is perhaps easier to recall than cat proc/whatever/cpu/whatnot.
But maybe you need to have it installed, not being a bare-bones default thing, unlike grepping whatever from somewhere. |
(Assuming x86 architecture)
Code:
cat /proc/cpuinfo | grep flags | grep " lm " && echo 64-bit || echo 32-bit |
How to determine whether a computer is 32 or 64 Bit
Thanks everybody for the timely & excellent tips. Problem solved.
drmjh |
Quote:
I'm glad the solutions work. If you would, please mark this thread as "SOLVED" by clicking on "Thread Tools" directly above your initial post. Thanks! :) Regards... |
Code:
getconf LONG_BIT |
Quote:
|
Quote:
The code for cpu info is below. The last line in the output will tell if the cpu is 32 or 64 bit Code:
dmidecode --type processor PS: Other keywords for dmidecode --type are bios, system, baseboard, chassis, processor, memory, cache, connector, and slot |
avoid knowing which is better. people are moving to either "fresh compiled (all 32 all 64) or "off shelf (all 64)"
what i mean is a mixed system needing to have both for disto to "a crowd having either kinda pc) using one distributed tar - is getting more rare |
All times are GMT -5. The time now is 02:01 AM. |