diff --git a/cheat/cheatsheets/pgrep b/cheat/cheatsheets/pgrep new file mode 100644 index 0000000..54983a2 --- /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 example | xargs kill \ No newline at end of file