CmdID

CmdID / Commands

pidof

Print the PIDs of all processes with the given names. toybox

On Linux

Opens CmdID with your command. It is read in your browser and sent nowhere.

Linux

from the toybox, 0BSD
pidof [-s] [-o omitpid[,omitpid...]] [NAME...]
-oOmit PID(s)
-sSingle shot, only return one pid
-xMatch shell scripts too

Get the ID of a process using its name.

List all process IDs with given name

pidof bashIdentify

List a single process ID with given name

pidof -s bashIdentify
-sSingle shot, only return one pid toybox

List process IDs including scripts with given name

pidof -x script.pyIdentify
-xMatch shell scripts too toybox

Kill all processes with given name

kill $(pidof name)Identify

Trips 1 Sigma rule: mediumTerminate Linux Process Via Kill by Tuan Le (NCSGroup)