mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:06:51 +08:00
507 B
507 B
pgrep
按名称查找进程或向进程发送信号。 另请参阅:
pidof。 更多信息:https://manned.org/pgrep。
- 返回命令字符串匹配的所有正在运行进程的 PID:
pgrep {{进程名称}}
- 同时显示完整命令:
pgrep {{[-a|--list-full]}} {{进程名称}}
- 搜索进程时包含其命令行选项:
pgrep {{[-f|--full]}} "{{进程名称}} {{参数}}"
- 搜索由特定用户运行的进程:
pgrep {{[-u|--euid]}} {{用户名}} {{进程名称}}