LINUX – how can I detect CPU architecture through terminal

32-bit64-bitArchitecturelinuxssh

I have a machine on my network that I can only access through ssh, and I want to see if it'll support a 64-bit OS (currently running linux, but I don't know which). Any ideas how to accomplish this through terminal command/s? thanks.

Best Answer

cat /proc/cpuinfo

look for the 'lm' flag, it means 'long-mode' i.e. 64-bit capable.