What is the arch command in Linux?
Overview
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:
i386i486i586i686x86_64alphasparcarmm68kmipsppc
Syntax
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 |
Code
Example 1
The following code prints the current system architecture.
arch
Example 2
The following code prints the version of the arch command in use.
arch --version