Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpengau authored Mar 17, 2023
1 parent a82c4ec commit f1abbe9
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
# macos-kill-hanging-processes-programs
macOS tips on killing hanging processes/programs
macOS tips on killing hanging processes/programs (applications)

### Search for process id (pid)
```
ps -ax | grep <application_name>
```

E.g.
```
ps -ax | grep virtualbox
```

### ALTERNATIVE: use activity monitor to locate the active window of the application for the pid

### Terminal
```
kill <pid>
```

OR

```
kill -9 <pid>
```

E.g.
```
kill -9 3201
```

NOTE: the -9 is to indicate the signal is SIGKILL (return code 9)

0 comments on commit f1abbe9

Please sign in to comment.