pgrep and pkill

If you want to find out the process IDs for all process names containing ‘httpd’ –

pgrep httpd
321
324
455

If you want to kill all httpd processes –

pkill httpd

Advertisements

Comments are closed.

%d bloggers like this: