title: How to check for 32-bit / 64-bit kernel for Linux
body: <p>I need to write a bash script where i have to check whether the Linux kernel is 32 bit or 64 bit.</p>
  
  <p>I am using <strong>uname -a</strong> command, and it gives me <strong>x86_64</strong> result. But I believe I can not use it in the generic way because result may differ if some one using non x86 architecture.</p>
  
  <p>How to check for 32-bit / 64-bit kernel for Linux?</p>