How to check if server is 32 or 64 bit?

Some times we need to confirm the exact type bit type of server while installing any third party module. Its very simple to check if server is 32 bit or 64 bit you just need to run following command from shell prompt.

getconf LONG_BIT

Above command will show either your server is 32 bit or 64