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.

Like it.? Share it:

Comments are closed.