OS Unix How to check Linux 32 bit or 64 bit

** Myself
Method1
uname -m
For 32 bit show
i686
 
For 64 bit show
x86_64

Method2
cat /proc/cpuinfo
For 32 bit not show lm flag
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 cid xtpr
 
For 64 bit show lm flag
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 syscall nx lm constant_tsc pni cx16 lahf_lm

0 comments:

Loading