cheat-fork-echo/cheat/cheatsheets/pgrep

4 lines
120 B
Plaintext

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