mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Add pgrep cheatsheat
This commit is contained in:
parent
edd7b5e806
commit
1f3f9828c3
1 changed files with 4 additions and 0 deletions
4
cheat/cheatsheets/pgrep
Normal file
4
cheat/cheatsheets/pgrep
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Get a list of PIDs matching the pattern
|
||||
pgrep example
|
||||
# Kill all PIDs matching the pattern
|
||||
pgrep example | xargs kill
|
Loading…
Reference in a new issue