Files
cheat/cheat/cheatsheets/pgrep
2017-09-04 20:01:25 -04:00

6 lines
125 B
Plaintext

# Get a list of PIDs matching the pattern
pgrep example
# Kill all PIDs matching the pattern
pgrep -f example | xargs kill