3 ms·
You can shorten it even further with pkill or killall: pkill ^someScript.sh$ --signal TERM Either way pgrep is a nice command to learn about.
by marbu 13y ago
You can shorten it even further with pkill or killall:
pkill ^someScript.sh$ --signal TERM
Either way pgrep is a nice command to learn about.