1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 11:24:56 +02:00
tldr/common/pgrep.md
Chirag 660fb0958e Minor correction
Command with parameters need to be in double-quotes
2014-03-01 11:48:14 +05:30

23 lines
421 B
Markdown

# pgrep
> Find or signal process by name
- return PIDs of any running processes with a matching command string
`pgrep {{Finder}}`
- case insensitive greping
`pgrep -i {{fireFOx}}`
- 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}}`