-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a82c4ec
commit f1abbe9
Showing
1 changed file
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |