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

语法格式:arch [参数]

常用参数

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

参考实例

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

[root@linuxcool ~]# arch
x86_64

显示命令版本信息:

[root@linuxcool ~]# 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.
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。