In order to give you better experience I use cookies on my website. Agree Disagree
...

Part of Linux Commands Cheat Sheet

Look up and signal processes based on name and other.

The default signal sent is SIGTERM.

Search processes and send signal to them


pkill nginx

# send specific signal (9 SIGKILL)
pkill -9 nginx

About signals, check Kill Command in Linux.

Search processes by parent process ID and send signal to them


pkill -P 24910

List processes

Use ps instead: Ps Command in Linux

Search processes

Use pgrep instead: Pgrep Command in Linux

References

Pkill Command in Linux | Linuxize

pkill(1) - Linux man page

sccmg