Let’s just assume that you are using Mac (OSX) and for a second that you are having trouble with a program, this program is currently frozen and unresponsive. What can you do besides select “force quit”? The solution to your problem is the kill command.

We’ve mentioned the kill command before, but I’m sure that some of you are unaware it can be used in Mac’s OSX. Since Mac is based on UNIX, it can become very powerful when actually utilized.

For those who don’t know, “kill” is used to stop a process or suspend a process. In this case, we’re going to kill a process because it has stopped responding.

  1. Open up a terminal session on your Mac.
  2. In the terminal session, type the following commands in:
    1. ps -ax or ps -acx
      1. This will give you a list of all processes currently running on your system. Adding to that, it will display the time, whether or not it’s running from on a terminal session and, its entire path name. Screen Shot 2017-07-10 at 9.17.52 AM
  3. Since we already know what program is currently causing problems on your machine we can go ahead and grep it. Like so….
    1. ps -ax | grep [program] 
      1. where “[program]” is you can go ahead and put the program’s name in. So, MS Word would be “Word”
    2. ps -ax | grep Word
      1. this is what it would look like when grepping for MS WordScreen Shot 2017-07-10 at 9.21.16 AM
  4. Kill it with fire… Actually, kill it with the kill command… kill [pid] 
    1. in this case, the PID is 5771.
      1. Which means, you would enter the following kill 5771Screen Shot 2017-07-10 at 9.35.54 AM.png
  5. MS Word will most likely reopen with “(recovered)” at the top where you usually see the files name.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s