![]() The highlighted text suggests my system is 32-bit. The output of these commands should contain "32-bit" for 32-bit systems and "64-bit" for 64-bit OS.įor example, here's the output in my case: /sbin/init: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID=c394677bccc720a3bb4f4c42a48e008ff33e39b1, stripped 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. 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.
0 Comments
Leave a Reply. |