tldr/pages/common/psgrep.md

17 lines
370 B
Markdown
Raw Normal View History

2018-11-24 12:37:30 +00:00
# psgrep
2019-05-12 15:30:55 +01:00
> Search running processes with `grep`.
2019-05-29 14:53:55 +01:00
> More information: <https://jvz.github.io/psgrep>.
2018-11-24 12:37:30 +00:00
- Find process lines containing a specific string:
`psgrep {{process_name}}`
2019-05-12 15:30:55 +01:00
- Find process lines containing a specific string, excluding headers:
2018-11-24 12:37:30 +00:00
`psgrep -n {{process_name}}`
2019-05-12 15:30:55 +01:00
- Search using a simplified format (PID, user, command):
2018-11-24 12:37:30 +00:00
`psgrep -s {{process_name}}`