You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
368 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# **pidof**
## 补充说明
**pidof命令** 用于查找指定名称的进程的进程号id号。
## 选项
```sh
-s仅返回一个进程pid号
-c仅显示具有相同“root”目录的进程
-x显示由脚本开启的进程
-o指定不显示的进程ID。
```
## 实例
```sh
pidof nginx
13312 5371
pidof crond
1509
pidof init
1
```