Linux: Check CPU / OS running 32 or 64 bit

To check your cpu whether it is running 32 or 64 bit,

cat /proc/cpuinfo | grep lm

there should be a “lahf_lm” flag for 64 bit cpu.

To check the kernel,

uname -a | grep 64

there should be a “x86_64” for 64 bit OS.

Author: bpeh

Bernard Peh is a great passioner of web technologies and one of the co-founder of Website Design and Reviews. He works with experienced web designers and developers everyday, developing and designing commercial websites. He specialises mainly in SEO and PHP programming.