add pgrep

This commit is contained in:
nick
2019-01-30 21:22:48 +08:00
parent 9fb17700b4
commit cb88913ac5
2 changed files with 27 additions and 0 deletions

View File

@@ -321,3 +321,11 @@ bg 1 #将任务编号为 1 调到后台运行
fg 1 #将任务编号为 1 调到前台运行
```
#### pgrep 命令
```
pgrep nginx # 查看 nginx 进程
pgrep -l nginx #查看 nginx 进程名称
```