How To Find Out If 32 or 64 bit Unix OS Installed On Server

I‘m a new Unix system user. How can I determine if 32 or 64 bit OS is installed on my Unix server?

You need to use the following commands to find out information about Unix kernel and CPU architecture:[donotprint][/donotprint]

  • getconf command : Display the bit mode of the machine hardware and the bit mode of the kernel.

HP-UX example

Type the following command at Terminal application:
$ getconf KERNEL_BITS

AIX example


Solaris Unix example

$ isainfo -v
$ isainfo -kv

OS X Unix example

$ getconf LONG_BIT

Linux example

$ getconf LONG_BIT

You must see ’64’, ‘ia64’ or ‘x86_64′ if the operating system is running in 64-bit mode. If ’32’ or ‘i386’ is displayed, the OS was compiled for and is running on a 32-bit processor mode.

uname command

You can use uname command too:
$ uname -a
Sample outputs from OS X:

Darwin Viveks-MacBook-Pro.local 15.0.0 Darwin Kernel Version 15.0.0: Wed Aug 26 16:57:32 PDT 2015; root:xnu-3247.1.106~1/RELEASE_X86_64 x86_64

See also –Linux: Find If Processor (CPU) is 64 bit / 32 bit [long mode ~ lm]

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.