Files
tldr/common/pgrep.md
Chirag b5408a18d4 Updating pgrep page
Added parameters for searching by user and searching by complete command
with parameters
2014-03-01 11:36:58 +05:30

419 B

pgrep

Find or signal process by name

  • return PIDs of any running processes with a matching command string

pgrep {{Finder}}

  • case insensitive greping

pgrep -i {{fireFOx}}

  • search full command line with parameters instead of just the process name

pgrep -f {{ssh root}}

  • search for process run by a specific user

pgrep -u root {{firefox}}

  • kill all processes which match

pkill -9 {{Finder}}