Forrest logo
back to the getconf tool

getconf:tldr:2b466

getconf: Check if your linux system is a 32-bit or 64-bit.
$ getconf LONG_BIT
try on your machine

The command "getconf LONG_BIT" is used to retrieve the size of the long data type in bytes. The output of this command tells you the word size or architecture of the operating system.

The "long" data type is a larger integer data type that can store larger numbers than the regular "int" data type. Its size can vary depending on the system architecture.

By running the "getconf LONG_BIT" command, you can determine whether your system is 32-bit or 64-bit. If the command outputs "32", it means your operating system is running on a 32-bit architecture. A "64" output indicates a 64-bit architecture.

Knowing the architecture of your system can be useful when installing software, as some programs may have different versions for different architectures.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the getconf tool