killall 💀
Today while pairing I learned about the killall
command.
This BSD program kills processes by name, unlike kill
, which uses PID.
Here's me killing my Mac calculator:
$ ps aux | grep Calc
grep Calc
/Applications/Calculator.app/Contents/MacOS/Calculator
$ killall Calculator
$ ps aux | grep Calc
grep Calc
Thanks for the tip, Mark!
Tweet