mirror of https://github.com/CrimsonTome/tldr.git
16 lines
340 B
Markdown
16 lines
340 B
Markdown
# pgrep
|
|
|
|
> Find or signal process by name
|
|
|
|
- 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
|
|
|
|
`pgrep -f "{{process_name}} {{parameter}}"`
|
|
|
|
- search for process run by a specific user
|
|
|
|
`pgrep -u root {{process_name}}`
|