arch: Get Architecture Utility

arch

CategoryCommand Line Program
Part OfGUN Core Utilities
ClassificationTier 1
Official Documentation GNU arch

1 Description

The arch program when run will output a string that identifies the CPU architecture of the current system. A table of different values that arch can output is displayed in section 2.

2 Architectures

Architecture Description
aarch64 A 64 bit ARM processor.
armv8l A 64 bit ARM processor.
i386 An intel 32 bit processor.
i686 A 32 bit Intel processor.
openrisc A RISC processor.
ppc64le A 64 bit PowerPC little-endian processor.
sparc A sparc processor.
x86_64 A 64 bit Intel or AMD processor

3 Arguments

The table below lists the command line options for the arch program.

Argument Description
--help Print some information about how the arch program works.
--version Print version information and exit.

4 Return Values

The arch will exit with zero upon success and a positive integer otherwise.

arch Return Values
Return Value Description
0 Successful termination. arch completed successfully.

5 Examples

5.1 Get The System Architecture

The example below demonstrates how you can run the arch program with zero arguments and it will print out a string identifying what architecture the current system is.

user-1@vm:~$ arch
x86_64
user-1@vm:~$ 

This document was last updated: