Mac Developer Program License Agreement confirms the kill. While that alone is not enough to say that Apple is not going to release a version of Java for Mac OS X 10.7, this next statement from the new Mac App Store 'Mac Developer Program License Agreement' seems to provide the final nail in the coffin.
Active3 years, 11 months ago
So, what do you do on a Mac when a process (as opposed to an application) is hogging CPU, swamping your machine, and you need to kill it?
- Everyone knows how to kill a program using Task Manager in Windows or Force Quit in OS X, but sometimes it's useful to kill a program using the command line. I've run into several situations where the program refused to end via Task Manager, even when I tried to kill the underlying process.
- In this guide, we will explain the techniques to overcome these shortcomings: ie the various ways of how to kill a process Mac, from the simplest and intuitive to those for the so-called ” geeks “. 1.) The war between operating systems is ever in recent years more and more fierce and exciting.
I know you can use
top
or open “Applications > Utilities > Activity Monitor” and kill it from there.But what happens when the process is already using so much CPU that doing either of those tasks is impossible? Mac 250 entour manual.
On Windows, you can just do ctrl+alt+delete and the process list will reliably open. So no matter how much your computer is thrashing, you always have access to the list of processes.
On Mac OS, there’s cmd+alt+escape, which reliably shows running applications. Fine when it’s an application causing the problem. But: what do you do if it’s a process?
JakeGould34.8k1010 gold badges109109 silver badges150150 bronze badges
AP257AP257
6 Answers
Mac process inc manual. Based on your desire to kill an individual process, I'm assuming that you are ok with a solution at the Terminal. The Terminal is pretty light so should be responsive even if your system is swamped, or if you're logging in via ssh.
Beyond the basic
kill
command, which kills processes via their pid
(which you'd need to get from either a ps
command, or the Activity monitor), a neat trick at the terminal is the killall
command, which allows you to kill a process by name rather than pid.For example, if you know the name of your process is
my-prog-0
or whatever, you can go to the terminal and do:There are a number of good options (see
man killall
for more info):One thing to note about OS X is that some system processes will be automatically restarted if they are killed by the
dtlussierdtlussierlaunchd
daemon (I think??). For example, if the Dock is not responsive you can do a killall Dock
and it will restart automatically.1,72522 gold badges1919 silver badges2727 bronze badges
Force Quit is the alternative to Task Manager on Mac. It's fast, efficient, and kills applications really fast.
You can access this feature through two ways.
- Apple Icon (on the top left corner of the screen)--> Force Quit..
- Hold Alt/Option + Apple/Command + Escape. This can be useful if you memorised the keyboard command and in the rare case that Finder misbehaves and freezes along it too.
Community♦
JFWJFW1,32477 gold badges2323 silver badges3535 bronze badges
Try the following command in terminal to list and search for process using a regex:-
ps gx | grep 'Symantec'
The above example is to list all the 'Symantec' related processes. Replace 'Symantec' with your own phrase. Next use variations of 'kill' command. Mail mac sierra user manual. You can either use:-
kill pid
Replace 'pid' with actual process id. Or use,
killall
as suggested before. To reiterate another useful suggestion, use
man kill
to see the manual for 'kill' command and also scroll down and see related commands which is mentioned under, 'SEE ALSO' section.
AmitAmit
The is no process killing keyboard shorcut, only for running applications. The only way to kill processes is through Activity Monitor or through Terminal using UNIX commands.
Madison SMadison S
Go to activity monitor, find the dock and highlight it. Hit the kill button (Stopsign with X in it, top left).
Force Quit is used for simple applications, while the activity monitor can be used to kill processes.
AlexAlex
Use Activity Monitor to find the Process you want to killLook at the PIDUsing Terminal type Kill PID number and then return.
This assumes you have admin or sudu access
Steve WalkerSteve Walker
protected by Community♦Sep 20 '15 at 23:27
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Would you like to answer one of these unanswered questions instead?
Not the answer you're looking for? Browse other questions tagged mac or ask your own question.
Active5 years, 11 months ago
I'm looking for a script that will kill all the processes on my Mac. To be more specific, the script should kill all the processes and shut down.
Well the point is that I want to kill all the procesess and restart Mac OS X but not shutting it down. I know that there exist commands like
sudo shutdown -r now
but it's not working on my Mac (that command is restarting it, but does not kill the processes after rebooting). I can't use
sudo shutdown - h now
because I haven't got access to my Mac (only TeamViewer to connect to my Mac Mini). So I can't push the button on/off/restart. Any ideas how to do it?
slhckManual Kill Program Mac Os X 10 11
170k4848 gold badges473473 silver badges490490 bronze badges
MackoMacko
3 Answers
As Daniel J. pointed out, why can't you use
This will kill all processes on your computer and shut down the computer. Why do you have to 'rewrite' a script that is already done by the
shutdown
command?sameetandpotatoessameetandpotatoes
Well you need a bash script that gets a list of all running processes and their PIDs and then uses a loop to kill each one of those PIDs like
kill 1002
inside the loop, once done you can call the shutdown process. The thing is that the shutdown process does that for you already.Daniel J.Daniel J.
If there are only a few specific processes you want to terminate, you could use
killall
and then use AppleScript to send loginwindow
a kAEShutDown
Apple event:If you want to shut down without being asked to save unsaved changes and so on, try using
sudo shutdown -h now
. It sends all processes a TERM
signal followed by a KILL
signal, which should be relatively safe even with graphical applications. If an application supports sudden termination, it is supposed to be safe to send it a KILL
signal.Normally when you shut down, Cocoa applications are terminated by calling the
applicationShouldTerminate:
delegate method, non-Cocoa applications and background processes are sent a kAEQuitApplication
Apple event, and daemons are sent a TERM
signal followed by a KILL
signal. See Daemons and Services Programming Guide.Edit: if you want to disable reopening applications after restarting, you can run
Lridefaults -currentHost write com.apple.loginwindow TALAppsToRelaunchAtLogin -array '()'
before sudo shutdown -r now
. The list of applications to reopen at login is stored in ~/Library/Preferences/ByHost/com.apple.loginwindow.*.plist
.Default Programs Mac Os X
Lri32.5k55 gold badges9595 silver badges135135 bronze badges