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]
Tutorial details
Difficulty Easy (rss)
Root privileges No
Requirements None
Time 1m
[/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

$ 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]


🐧 Please support my work on Patreon or with a donation.
🐧 Get the latest tutorials on Linux, Open Source & DevOps via:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
1 comment… add one
  • Yoander Oct 21, 2015 @ 17:40

    GNU/Linux you can use arch command too

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre> for code samples. Problem posting comment? Email me @ webmaster@cyberciti.biz