pkill
Signal process by name. tldr-pages
On Linux 1 Sigma rule name it
Linux
pkill [-fnovx] [-SIGNAL|-l SIGNAL] [PATTERN] [-G GID,] [-g PGRP,] [-P PPID,] [-s SID,] [-t TERM,] [-U UID,] [-u EUID,]
Show 14 options
-lSend SIGNAL (default SIGTERM)-VVerbose-fCheck full command line for PATTERN-GMatch real Group ID(s)-gMatch Process Group(s) (0 is current user)-nNewest match only-oOldest match only-PMatch Parent Process ID(s)-sMatch Session ID(s) (0 for current)-tMatch Terminal(s)-UMatch real User ID(s)-uMatch effective User ID(s)-vNegate the match-xMatch whole command (not substring)Several platforms
Signal process by name. Mostly used for stopping processes.
Kill all processes which match
pkill "process_name"IdentifyTrips 1 Sigma rule: mediumTerminate Linux Process Via Kill by Tuan Le (NCSGroup)
Kill all processes which match their full command instead of just the process name
pkill --full "command_name"IdentifyTrips 1 Sigma rule: mediumTerminate Linux Process Via Kill by Tuan Le (NCSGroup)
Force kill matching processes (can't be blocked)
pkill -SIGKILL "process_name"Identify-GMatch real Group ID(s) toyboxTrips 1 Sigma rule: mediumTerminate Linux Process Via Kill by Tuan Le (NCSGroup)
Send SIGUSR1 signal to processes which match
pkill -SIGUSR1 "process_name"Identify-GMatch real Group ID(s) toybox-UMatch real User ID(s) toyboxTrips 1 Sigma rule: mediumTerminate Linux Process Via Kill by Tuan Le (NCSGroup)
Kill the main firefox process to close the browser
pkill --oldest "firefox"IdentifyTrips 1 Sigma rule: mediumTerminate Linux Process Via Kill by Tuan Le (NCSGroup)