macbook kill unnecessary processes mac code example Example: mac kill process by PID $ sudo kill -9 PID