Skip to content

Instantly share code, notes, and snippets.

@ohjho
Last active July 15, 2020 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohjho/fa6242316e6cb8206156c3f3ac048d44 to your computer and use it in GitHub Desktop.
Save ohjho/fa6242316e6cb8206156c3f3ac048d44 to your computer and use it in GitHub Desktop.
Search and Kill Process in Linux land

Search for your Process's ID:

ps aux | grep 'your search term'

Kill it gently (assuming our id is 93735):

kill 93735

or kill it forcefully

kill -9 93735

to kill many processes matching your search term:

pkill -f 'your search term'

add the -9 switch to kill them forcefully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment