arch命令来自英文单词“architecture”的缩写,中文译为“架构”,其功能是用于显示主机硬件架构类型。虽说目前主流硬件架构当数x86_64应用最广泛,但也会偶尔遇到下载了软件包无法安装的情况,这时就要排除下服务器是不是i386、i486、mips、alpha等架构类型了。

语法格式:arch [参数]

常用参数

--help显示帮助信息
--version显示版本信息

参考实例

显示当前主机硬件架构类型:

[root@linux-arae-cc ~]# arch
x86_64

显示命令版本信息:

[root@linux-arae-cc ~]# arch --version
arch (GNU coreutils) 8.30
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David MacKenzie and Karel Zak.