arch命令主要用于显示当前主机的硬件结构类型,arch命令输出的结果有:i386、i486、mips、alpha等。
此命令的适用范围:RedHat、RHEL、Ubuntu、CentOS、SUSE、openSUSE、Fedora。
语法格式:arch [参数]
常用参数
-- -help | 显示此命令的帮助信息 |
-- -version | 显示命令的版本信息 |
参考实例
显示当前主机硬件架构类型:
[root@linuxcool ~]# arch x86_64
查看当前arch命令版本:
[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.