diff --git a/cheat/cheatsheets/pgrep b/cheat/cheatsheets/pgrep new file mode 100644 index 0000000..a4d13bf --- /dev/null +++ b/cheat/cheatsheets/pgrep @@ -0,0 +1,4 @@ +# Get a list of PIDs matching the pattern +pgrep example +# Kill all PIDs matching the pattern +pgrep -f example | xargs kill \ No newline at end of file