To find processor size

Following command returns the size of the processor
eg. 32 or 64 bit.

getconf -a | grep LONG_BIT

This runs the get configuration command with the -a (all) switch. It then pipes the output through grep looking for the line that specifies the LONG_BIT.

For more information run:

man getconf
Back to GNU/Linux Command Line Tips