Files
tldr/pages.zh/common/pgrep.md

16 lines
364 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# pgrep
> 根据名称查找或信号进程。
> 更多信息:<https://www.manned.org/pgrep>。
- 返回任何运行的进程的PID匹配命令字符串
`pgrep {{process_name}}`
- 搜索包括其命令行选项的进程:
`pgrep --full "{{process_name}} {{parameter}}"`
- 搜索由特定用户运行的进程:
`pgrep --euid root {{process_name}}`