cheat-fork-echo/cheat/cheatsheets/pgrep

4 lines
123 B
Plaintext
Raw Normal View History

2017-05-15 16:14:30 +02:00
# Get a list of PIDs matching the pattern
pgrep example
# Kill all PIDs matching the pattern
2017-06-09 18:43:11 +02:00
pgrep -f example | xargs kill