cheat-fork-echo/cheat/cheatsheets/pgrep
2017-06-10 01:43:11 +09:00

4 lines
123 B
Plaintext

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