cheat-fork-echo/cheat/cheatsheets/pgrep

5 lines
125 B
Text

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