Find out the CPU is 32bit or 64bit

To find out system CPU is 64-bit capable or not, use /proc/cpuinfo.

cat /proc/cpuinfo | grep flags

If result contains “lm” (Long Mode), system CPU is 64-bit capable.

As an alternative, use lshw (Hardware Lister).

Example

Give the command

cat /proc/cpuinfo | grep flags

This is the result for one CPU. Actually you will take something like this for each CPU. Scroll horizontally to find “lm

flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid