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

Posted on in Categories , , , , , last updated October 18, 2015

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:

  • 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

$ getconf HARDWARE_BITMODE
$ getconf KERNEL_BITMODE

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: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

1 comment

Leave a Comment