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

16 lines
359 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.

# psgrep
> 使用 `grep` 搜索正在运行的进程。
> 更多信息:<https://jvz.github.io/psgrep>。
- 查找包含特定字符串的进程行:
`psgrep {{process_name}}`
- 查找包含特定字符串的进程行,排除标题:
`psgrep -n {{process_name}}`
- 使用简化格式搜索PID、用户、命令
`psgrep -s {{process_name}}`