1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 13:05:59 +02:00

pgrep: add more info link (#5446)

This commit is contained in:
Axel Navarro 2021-03-15 15:29:40 -03:00 committed by GitHub
parent b80a854c4a
commit 160721def0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,15 +1,16 @@
# pgrep
> Find or signal process by name.
> Find or signal processes by name.
> More information: <https://www.man7.org/linux/man-pages/man1/pkill.1.html>.
- Return PIDs of any running processes with a matching command string:
`pgrep {{process_name}}`
- Search full command line with parameters instead of just the process name:
- Search for processes including their command line options:
`pgrep -f "{{process_name}} {{parameter}}"`
`pgrep --full "{{process_name}} {{parameter}}"`
- Search for process run by a specific user:
- Search for processes run by a specific user:
`pgrep -u root {{process_name}}`
`pgrep --euid root {{process_name}}`