How to use terminal to stop application running?
How to use terminal to stop application running?
MacBook Pro 13″, macOS 11.1
How to use terminal to stop application running?
MacBook Pro 13″, macOS 11.1
Charles7162 wrote:
How to use terminal to stop application running?
Maybe you can say more.... are you having an issue(?)
If this is a pedestrian question, you can simply use the "Force Quit" option in the drop down from the upper left menu bar see:
>Force Quit
Hi Charles7162,
This is a method that you have to be very careful with, as you need to make sure that you spell the name of the application exactly as it is said in your Applications folder, or underneath the picture of the application in the Launchpad. In your terminal, start off by typing: killall
From there, you're going to add a space and type the name of the application. If it's more than one word, you're going to need to put quotes around it. If it's only one word, the quotes would not be necessary. Once you have the command typed in, press enter to run the command.
Examples: killall iMovie, killall Safari, killall Pages, killall "App Store"
If you get an error message: Make sure that you are the administrator of this computer before continuing with these steps. In your terminal, you'll want to type: sudo
and add a space before you give the killall command. When you run the command, it's going to ask you for your password in the next line. That password is going to be the exact same one that you use as an Administrator to log on to your Mac.
Hope this helps,
Hedgehog68
if you have launched an application directly from the command-line without using the open command, and it hangs, you can use control-\ to interrupt it, and return to the command prompt. This will also open a dialog about sending a report to Apple, but you don't need too.
Hi, that's a good idea, but I tried it before. I downloaded "Avast Security" and I want to delete this application. I went to the Finder and right click "Avast Security" to delete it. A message popped out: "You cannot delete this application because this app is in opening condition." That's weird, I had already closed that app...
If you need to close app with terminal-you can use command: killall . For example, killall Safari
Also, you can use process id to kill (close) app.
I solved this problem!!! Thanks!!!
How to use terminal to stop application running?