HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

arch — Display the name of the system architecture, or run a command under a different architecture. See al

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandnamecliarchdisplaysystem
macos

Problem

How to use the arch command: Display the name of the system architecture, or run a command under a different architecture. See also: uname. More information: <https://keith.github.io/xcode-man-pages/arch.1.html>.

Solution

arch — Display the name of the system architecture, or run a command under a different architecture. See also: uname. More information: <https://keith.github.io/xcode-man-pages/arch.1.html>.

Display the system's architecture:
arch


Run a command using x86_64:
arch -x86_64 "{{command}}"


Run a command using arm:
arch -arm64 "{{command}}"

Code Snippets

Display the system's architecture

arch

Run a command using x86_64

arch -x86_64 "{{command}}"

Run a command using arm

arch -arm64 "{{command}}"

Context

tldr-pages: osx/arch

Revisions (0)

No revisions yet.