Scenario
You are preparing a report for a new software deployment. The application requires a 64-bit system, so you need to confirm the machine architecture and verify the OS is running in 64-bit mode using terminal commands only.
This is a low-risk validation you run before installing binaries, troubleshooting compatibility failures, or approving a host for production workloads.
Objective
- Check the machine architecture with
arch. - Confirm the same architecture via
uname -m. -
Review CPU architecture and execution modes using
lscpu. -
Verify the OS bitness using
getconf LONG_BIT. - Produce a short confirmation note suitable for a deployment record.
Concepts
-
Architecture names like
x86_64commonly imply a 64-bit capable CPU, but you still verify OS bitness. -
lscpushows CPU operating modes (CPU op-mode(s)) which indicates hardware capability. -
getconf LONG_BITreflects userland bitness, which is what many binaries care about. - Cross-verifying with multiple tools reduces false positives and catches weird edge cases.
What You’ll Practice
-
Architecture identification using
archanduname -m. -
CPU capability review using
lscpu(including op-modes). -
OS bitness validation using
getconf LONG_BIT. - Practical cross-verification: confirming the same fact using multiple independent commands.
- Writing a concise verification statement for operational documentation.
Walkthrough
arch
arch prints the system hardware architecture.
This is a fast baseline check when confirming whether a host
can run 64-bit binaries.
x86_64
uname -m
uname -m reports the machine hardware name.
Using a second command to confirm the same result reduces
mistakes and strengthens the evidence you capture in a
deployment report.
x86_64
lscpu
lscpu provides detailed CPU information,
including architecture and supported CPU operating modes.
This is useful when verifying that the hardware can execute
64-bit code even if the OS architecture is unclear.
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 2
Model name: Intel(R) Xeon(R) CPU
getconf LONG_BIT
getconf LONG_BIT reports whether the current
userland is operating in 32-bit or 64-bit mode. This is a
clean confirmation for deployment readiness.
64
echo 'Validated: host is x86_64 and running 64-bit userland (LONG_BIT=64).'
This produces a short line you can paste into a ticket, change record, or deployment checklist after completing your validation.
Validated: host is x86_64 and running 64-bit userland (LONG_BIT=64).
Common breakpoints
Hardware can support 64-bit while the OS is installed as
32-bit. Your deployment requirement usually cares about OS
userland, so trust getconf LONG_BIT.
Some minimal images do not include it by default. Install
the package that provides lscpu (commonly
util-linux) or rely on the other checks.
Architecture strings can vary (for example aarch64).
The workflow stays the same: verify architecture, verify CPU
modes when available, then confirm OS bitness.
Cleanup checklist
No system changes are made in this lab. There is nothing to clean up.
Reference
-
arch: Prints the machine hardware architecture. -
uname -m: Displays the machine hardware name (architecture).-m: outputs the machine hardware name
-
lscpu: Displays CPU architecture details and execution modes.-
Key fields:
Architecture,CPU op-mode(s)
-
Key fields:
-
getconf LONG_BIT: Reports whether userland is operating in 32-bit or 64-bit mode.LONG_BIT: returns32or64
-
echo 'Validated: ...': Prints a short confirmation line for operational notes.