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_64alphasparcarmm68kmipsppcarch [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