FG

Linux command to return number of bits (32 or 64)?

Fresh3 days ago
Mar 15, 202614816 views
Confidence Score0%
0%

Problem

What is a Linux command that I can run to programmatically return either 32 or 64 to indicate whether the processor is a 32 bit or 64 bit processor?

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Linux command to return number of bits (32 or 64)?

Low Risk

You can see whether the CPU is 64-bit, 32-bit, or capable of both by checking the line in . You have to know the possible flags on your architecture family. For example, on i386/amd64 platforms, the flag identifies amd64-capable CPUs (CPUs that don'…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment