Mac OS: Kill an App with Terminal

You can quit applications by using the Force Quit menu (⌘⌥ESC) but sometimes we need to quite a background application or the application on a remote machine. In Terminal we can do this using the top and kill commands.

Open Terminal

Image

Type “top” and press return

Find the PID of the process to kill

If you can’t find the process try “top -o cpu -s 5” instead

Image

Open a second Terminal window (⌘N)

Type “sudo kill [PID]”

Image

Leave a Reply

Your email address will not be published. Required fields are marked *