Check Whether Raspberry Pi OS is 32-bit or 64-bit

You can get Raspberry Pi OS in either a 32-bit and 64-bit architecture.

When you install applications, it can be important to know whether the operating system is 32-bit or 64-bit.

This quick guide shows how to check whether Raspberry Pi OS is 32-bit or 64-bit.

Tgetconf is a command line tool that is used to retrieve system configuration information at runtime. You can use the getconf command with the LONG_BIT option, prints the number of bits in a long integer data type on the system.

getconf LONG_BIT

If the command outputs 32, then the OS is 32-bit and if it outputs 64, then the OS is 64-bit.

Here is my output

user@raspberrypi:~ $ getconf LONG_BIT
64

Note

There are a few resources online that say you can do the following

uname -m

This command can be used to determine if the Linux kernel is 32-bit or 64-bit. A 32-bit OS can use a 32-bit or 64-bit kernel. On a Raspberry Pi 4 with a recent update the kernel changed to aarch64. So now, uname -m returns aarch64 instead of armv7l.

Related posts

Getting CPU info using cpufetch on Raspberry Pi

Use lshw to get hardware information about a Raspberry Pi

Generate passwords using pwgen on Raspberry Pi

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Read More