Skip to content

Instantly share code, notes, and snippets.

@Fintan
Last active January 15, 2020 10:04
Show Gist options
  • Save Fintan/ea5c97bdd9472487de493a1ac4ba07c3 to your computer and use it in GitHub Desktop.
Save Fintan/ea5c97bdd9472487de493a1ac4ba07c3 to your computer and use it in GitHub Desktop.
List and kill processes
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
# 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