tldr/pages/common/pgrep.md

20 lines
368 B
Markdown
Raw Normal View History

# pgrep
> Find or signal process by name
2015-10-22 08:31:52 +01:00
- return PIDs of any running processes with a matching command string
`pgrep {{Finder}}`
- search full command line with parameters instead of just the process name
`pgrep -f "{{ssh root}}"`
- search for process run by a specific user
`pgrep -u root {{firefox}}`
- kill all processes which match
`pkill -9 {{Finder}}`