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 nixCraft 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.


Start your Bitcoin Exchange with our Software

Start your Bitcoin Exchange with our Software Setup your white label bitcoin exchange right away. Or create your own cryptocurrency using...

How to KVM, QEMU start or stop virtual machine from command line (CLI)

KVM or Kernel Based Virtual Machine is a popular virtualization technology. It allows you to run virtual guest machines over a host machine. To start...

How to Docker backup Saving and restoring your volumes

Running a Docker volume backup First, we spin up a temporary container, and we mount the backup folder and the target Docker volume to this container....