Sometimes it’s’ necessary for us to force-close an app on our Mac if it’s no longer responding to our commands. Usually we’d do that by pressing CMD+OPT+ESCAPE, which brings up a handy window from which we can choose a troublesome app.
But sometimes, this keyboard combination won’t work – for example, if we’re dealing with a remote Mac to which no physical keyboard is attached. In such cases, we can choose to force-close an app via the command line. Let me show you how to do that.
Blocking selected apps is recommended for advanced users, who have a full grasp of every app running on their device. The system-wide Kill Switch is the safer option. For Android, iOS, and macOS.
Connect to your Mac via SSH using a Terminal Session and find out what apps are currently running. We’ll so that with the top command:
If an app on your Mac stops responding and you can't quit the app normally, use Force Quit to close the app. To quit (close) a Mac app normally, choose Quit from the app's menu in the menu bar, or press Command (⌘)-Q. And that’s it: the troublesome app has been force-closed and should vacate your system sharpishly. For more information on both top and kill, check out their respective man pages on your Mac. Magican – Mac system optimizer software can help Mac users quickly kill the program process. To our Magican users, if you always keep the floating window on your desktop, and then you can directly kill the process in the floating window. You can find the program name and click the button in the right of the program to kill the program process. Force Quit Mac Applications With the Keyboard. You can also press Cmd+Opt+Esc to bring up the Force Quit menu and select the app you want to kill.
Using the -u switch tells top to list the app with the highest CPU usage over time first. The command will display a list of running processes, much like this: Best free app to text from android to mac computer.
Take a look at the list and make a note of the troublesome app. In my case it’s Carrara, using 165% of my CPUs resources. By definition impossible, but let’s not worry about that. The important thing is this app’s PID (Process ID). Write it down or take a screenshot, we’ll need it in amount to kill the app (mine is 5964).
Press CTRL+C to stop top and return to the command line. Now issue the following command, replacing 5964 with your own PID:
And that’s it: the troublesome app has been force-closed and should vacate your system sharpishly. Paw mac app store. For more information on both top and kill, check out their respective man pages on your Mac.
Close Apps On Macbook
To quit (close) a Mac app normally, choose Quit from the app's menu in the menu bar, or press Command (⌘)-Q. If the app doesn't quit, follow these steps to force the app to quit.
How to force an app to quit
Press these three keys together: Option, Command, and Esc (Escape). Or choose Force Quit from the Apple menu in the upper-left corner of your screen. (This is similar to pressing Control-Alt-Delete on a PC.)
Then select the app in the Force Quit window and click Force Quit.
You can even force the Finder to quit, if it stops responding: Select Finder in the Force Quit window, then click Relaunch.
Killing Application On Mac
Learn more
Close Apps On Mac
How to force an app to close on your iPhone, iPad, or iPod touch. Free phone apps for verizon.