The arch
command in Linux
is used to get the current computer architecture.
The different architectures that the arch
command can detect are as follows:
i386
i486
i586
i686
x86_64
alpha
sparc
arm
m68k
mips
ppc
arch [OPTIONS]
The available options are as follows:
Option | Description |
---|---|
--version |
Display the current version of the command |
--help |
Display the description and the options of the command |
The following code prints the current system architecture.
arch
The following code prints the version of the arch
command in use.
arch --version