1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-11 20:15:46 +02:00
tldr/pages/common/pgrep.md

16 lines
340 B
Markdown
Raw Normal View History

# pgrep
> Find or signal process by name
2015-10-22 15:31:52 +08:00
- 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}}`