cheat-fork-echo/cheat/cheatsheets/pgrep

6 lines
125 B
Text
Raw Normal View History

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