-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/ --> |