1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-25 13:35:25 +02:00

Merge pull request #548 from kmoe/pgrep

pgrep: remove pkill example and correct tokens
This commit is contained in:
Igor Shubovych 2016-01-02 17:57:16 +02:00
commit 61fb7a6f89

View file

@ -4,16 +4,12 @@
- 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
`pgrep -f "{{ssh root}}"`
`pgrep -f "{{process_name}} {{parameter}}"`
- search for process run by a specific user
`pgrep -u root {{firefox}}`
- kill all processes which match
`pkill -9 {{Finder}}`
`pgrep -u root {{process_name}}`