1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 02:57:58 +01:00
tldr/pages/common/pgrep.md
2016-01-08 09:38:59 +01:00

344 B

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}}