Last active
January 15, 2020 10:04
-
-
Save Fintan/ea5c97bdd9472487de493a1ac4ba07c3 to your computer and use it in GitHub Desktop.
List and kill processes
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
The most common kill signals are: | |
Signal Name. Single Value. Effect | |
SIGHUP 1 Hangup | |
SIGINT 2 Interrupt from keyboard | |
SIGKILL 9. Kill signal | |
SIGTERM 15 Termination signal | |
SIGSTOP 17, 19, 23 Stop the process | |
kill SIGNAL PID |
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
# list processes | |
ps aux | grep chrome | |
#The aux options are as follows: | |
# a = show processes for all users | |
# u = display the process’s user/owner | |
# x = also show processes not attached to a terminal | |
#The x option is important when you’re hunting for information regarding a graphical application. | |
# kill a process | |
# kill SIGNAL PID | |
kill -9 3554 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment