Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

arch
linux
command
communitycreator

What is the arch command in Linux?

abhilash

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

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:

  1. i386
  2. i486
  3. i586
  4. i686
  5. x86_64
  6. alpha
  7. sparc
  8. arm
  9. m68k
  10. mips
  11. ppc

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

RELATED TAGS

arch
linux
command
communitycreator

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring