linux pgrep pkill - ghdrako/doc_snipets GitHub Wiki


tags:

  • linux
  • sysadmin

Linux pgrep pkill

It searches for all the named processes that can be specified as extended regular expression patterns, and—by default—returns their process ID. Alternatives include pidof (finds process ID given a program name) and ps.

pgrep -l curl
pkill curl