Create nproc.md

创建文档
This commit is contained in:
ZhuangZhu-74 2020-05-09 11:18:13 +08:00 committed by GitHub
parent 534d8203a5
commit 88e1414908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 36 additions and 0 deletions

36
command/nproc.md Normal file
View File

@ -0,0 +1,36 @@
nproc
===
打印可用的处理器单元数量。
## 概要
```shell
nproc [OPTION]...
```
## 主要用途
- 打印可用的处理器单元数量。
## 选项
```shell
--all 打印已安装处理器的数量。
--ignore=N 如果可以的情况下,排除 N 个处理单元。
--help 显示帮助信息并退出。
--version 显示版本信息并退出。
```
## 例子
```shell
[root@localhost ~]# nproc
8
```
### 注意
1. 该命令是`GNU coreutils`包中的命令,相关的帮助信息请查看`man -s 1 nproc``info coreutils 'nproc invocation'`。
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->