Thursday, June 21, 2012

How to detect CPU architecture/bitmode (32-bit or 64-bit)

#cat /proc/cpuinfo | grep flags

You will find one of them with name "tm(transparent mode)" or "rm(real mode)" or "lm(long mode)"


1. rm tells ,it is a 16 bit processor


2. tm tells, it is a 32 bit processor


3. lm tells, it is a 64 bit processor