Linux arch Command
Categories:
What is arch Command in Linux?
In this tutorial we learn how to use arch command in Linux. arch
command is a linux command which will print machine hardware name. This command is similar to uname -m
.
arch Syntax
arch [OPTION]...
Get Linux Machine architecture / platform with arch command
To use (and the only way to use) arch command is by typing arch
. For example:
$ arch
x86_64
In x86 64-bit machine it will print output like above. In 32-bit system it will show i686
.
arch Command Manual / Help
We can use man
and info
command to see the manual page of arch command.
arch command also have –help
option to show list of options.
To open man page for arch command we can use command below. To exit man or info page you can press q
.
man arch
To open info page for arch command we can use command below.
info arch
To open help page from arch command we can run command below.
arch --help
Linux arch Command Source Code
You can find arch command source code from the folowing repositories:
- arch source code on GitHub
- arch source code on GNU Savannah cgit
- arch source code on GNU Savannah gitweb
Related Linux Commands
You can read tutorials of related Linux commands below:
Summary
In this tutorial we learn how to use arch command in Linux with practical examples. Visit our Linux Commands guide to learn more about using command line interface in Linux.