tldr/pages/common/psgrep.md

16 lines
318 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`.
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}}`