mirror of
https://github.com/Estom/notes.git
synced 2026-04-13 15:19:52 +08:00
linux 命令和教程补充
This commit is contained in:
36
Linux/command/arch.md
Normal file
36
Linux/command/arch.md
Normal file
@@ -0,0 +1,36 @@
|
||||
arch
|
||||
===
|
||||
|
||||
显示当前主机的硬件架构类型
|
||||
|
||||
## 概要
|
||||
|
||||
```shell
|
||||
arch [OPTION]...
|
||||
```
|
||||
|
||||
## 主要用途
|
||||
|
||||
- 打印机器架构信息;`arch` 命令输出结果有:i386、i486、i586、alpha、sparc、arm、m68k、mips、ppc、i686等。
|
||||
|
||||
## 选项
|
||||
|
||||
```shell
|
||||
--help 显示帮助信息并退出。
|
||||
--version 显示版本信息并退出。
|
||||
```
|
||||
|
||||
## 例子
|
||||
|
||||
```shell
|
||||
[root@localhost ~]# arch
|
||||
x86_64
|
||||
```
|
||||
|
||||
### 注意
|
||||
|
||||
1. 该命令等价于 `uname -m`。
|
||||
|
||||
2. 该命令是`GNU coreutils`包中的命令,相关的帮助信息请查看`man -s 1 arch`,`info coreutils 'arch invocation'`。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user