Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Check If Linux Is 32-bit or 64-bit

Find out the architecture of your system with a single command.

VPS and Cloud Servers1 min read6 screenshots

Why it matters

  • Programs are built for one architecture. A 64-bit system can run most 32-bit programs only with extra libraries.
  • 64-bit systems can use much more RAM.
  • Drivers must match your architecture.

Method 1: uname

uname -m
Output of uname -m
OutputMeaning
i686 or i38632-bit
x86_64 or amd6464-bit

Method 2: arch

arch
Output of arch

It prints the same value: x86_64 for 64-bit and i686 for 32-bit.

Method 3: lscpu

lscpu
Output of lscpu

Look at the line CPU op-mode(s).

  • 32-bit, 64-bit means a 64-bit CPU that can run both modes.
  • 32-bit means a 32-bit CPU.

The line Architecture shows the architecture of the running system.

Method 4: Desktop settings

Open Settings, then About. Look for OS type or Architecture.

The About page in Settings
OS type shown in the About page

Method 5: Package tools

On Debian and Ubuntu:

dpkg --print-architecture
Output of dpkg --print-architecture

A result of amd64 is 64-bit. You can also run getconf LONG_BIT. It prints 32 or 64.

Quick recap

  • uname -m is the fastest check.
  • x86_64 or amd64 means 64-bit. i686 means 32-bit.