mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 09:02:08 +02:00
pgrep: remove pkill example and correct tokens
This commit is contained in:
parent
e45b0d7198
commit
ce9b0e1059
1 changed files with 3 additions and 7 deletions
|
@ -4,16 +4,12 @@
|
||||||
|
|
||||||
- return PIDs of any running processes with a matching command string
|
- return PIDs of any running processes with a matching command string
|
||||||
|
|
||||||
`pgrep {{Finder}}`
|
`pgrep {{process_name}}`
|
||||||
|
|
||||||
- search full command line with parameters instead of just the process name
|
- search full command line with parameters instead of just the process name
|
||||||
|
|
||||||
`pgrep -f "{{ssh root}}"`
|
`pgrep -f "{{process_name}} {{parameter}}"`
|
||||||
|
|
||||||
- search for process run by a specific user
|
- search for process run by a specific user
|
||||||
|
|
||||||
`pgrep -u root {{firefox}}`
|
`pgrep -u root {{process_name}}`
|
||||||
|
|
||||||
- kill all processes which match
|
|
||||||
|
|
||||||
`pkill -9 {{Finder}}`
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue