
:max_bytes(150000):strip_icc()/aboutoutlook-30f04040beb741778a4a134a4535e108.jpg)
Here's how it's done:įor systems using init, run the following command: file /sbin/initĪnd for systems using systemd (like Ubuntu 16.04), run the following command: file /lib/systemd/systemd However, you can also use this tool to determine whether the OS is 32-bit or 64-bit. The file command is usually used to determine the file type. If the output is 32, then your OS is 32-bit, and if the output is 64, then the OS is 64-bit. To check whether your OS is 32-bit or 64-bit, run getconf in the following way: getconf LONG_BIT

The getconf command is basically used to query system configuration variables. If the output is x86_64, then the OS is 64-bit. If the aforementioned command produces i686 in output, then your OS is 32-bit. You can use the command with -i option to produce the required information: uname -i Uname is a command-line utility that prints system information. But before we start the discussion, it's worth sharing that all the instructions and commands mentioned in this article have been tested on Ubuntu 20.04 LTS and Debian 10, and CentOS 8 How to check if your Linux system is 64-bit or 32-bit 1. In this tutorial, I'll discuss some of those ways. The information is not hard to find, but there is more than one way to access it. ObjWMI.If you're a Linux newbie, you should know that there will be times - such as when installing packages - when you'll be looking for a way to see if your operating system is 32-bit or 64-bit. SPath = "Software\Microsoft\Windows\CurrentVersion\Uninstall" Set objWMI = CreateObject("winmgmts:!\\.\root\default:StdRegProv") For simplicity, though not efficiency, this with WMI seems to work Function Office32or64() As LongĬonst cFind As String = "00FF1CE}" ' note zeros and number 1Ĭonst HKEY_LOCAL_MACHINE As Long = &H80000002 If the Installer's script can enumerate keys one way or another, eg behind the scenes with EnumRegKeyEx, it might be quite simple.
