arch
Print machine architecture type
TLDR
View documentation for the original command
SYNOPSIS
arch [OPTION]...
Print machine architecture (same as uname -m).
PARAMETERS
-?, --help
display this help and exit
-V, --version
output version information and exit
DESCRIPTION
The arch command displays the processor architecture of the host system, equivalent to uname -m. It outputs a single word like x86_64, i686, aarch64, or armv7l, depending on the hardware.
This utility is invaluable in scripts for architecture detection, conditional builds, or system diagnostics. As part of GNU coreutils, it is available on virtually all Linux distributions and POSIX-compliant systems.
No operands are accepted; only options for help or version info. It provides a concise, standardized way to query hardware without parsing more verbose outputs from other tools.
CAVEATS
Does not execute commands or change process personality; use setarch(8) for architecture emulation.
EXAMPLE
arch
Output: x86_64
HISTORY
Part of GNU coreutils since 1990s, derived from traditional Unix arch utility for machine type reporting.


