February 3, 2021 in Tutorial2 minutes
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 [OPTION]...
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
.
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
You can find arch command source code from the folowing repositories:
You can read tutorials of related Linux commands below:
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.