how to kill a process in mac command line code example Example: mac kill process by PID $ sudo kill -9 PID