LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

arch

Print the machine hardware architecture

TLDR

Print machine architecture
$ arch
copy

SYNOPSIS

arch

DESCRIPTION

arch prints the machine hardware architecture. On Linux this is the GNU coreutils command, equivalent to uname -m. There are no options other than --help and --version.Common outputs include:- x86_64: 64-bit Intel/AMD- aarch64 or arm64: 64-bit ARM- i686 or i386: 32-bit Intel- armv7l: 32-bit ARM- ppc64le: 64-bit PowerPC little-endian- riscv64: 64-bit RISC-V

INSTALL

sudo apt install coreutils
copy
sudo dnf install coreutils
copy
sudo pacman -S coreutils
copy
sudo apk add uutils-coreutils
copy
sudo zypper install coreutils
copy
brew install coreutils
copy
nix profile install nixpkgs#coreutils
copy

CAVEATS

The reported value depends on the kernel personality, not the silicon — running under setarch or in a 32-bit chroot can make a 64-bit machine report i686. On macOS the system arch binary is unrelated; it switches a process to a different architecture instead of printing one.

HISTORY

arch has been available on Unix systems since BSD. On Linux, it's part of coreutils and provides a simple wrapper around uname.

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid