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

To find out if a 32-bit or 64-bit Unix operating system is installed on a server, you can use the uname command with the -m option. The -m option shows the machine hardware name, which indicates the architecture of the operating system.

For example, you can run the following command:

uname -m

If the output of the command is i686 or i386, it means that the operating system is a 32-bit version. If the output is x86_64, it means that the operating system is a 64-bit version.

You can also use the getconf LONG_BIT command to check the size of the long data type, which indicates the architecture of the operating system.

For example, you can run the following command:

getconf LONG_BIT

If the output of the command is 32, it means that the operating system is a 32-bit version. If the output is 64, it means that the operating system is a 64-bit version.

Leave a Comment