Skip to content

Instantly share code, notes, and snippets.

@viper25
Created November 14, 2021 14:35
Show Gist options
  • Save viper25/9c3eb9936986cd6693ad17d16cc1650b to your computer and use it in GitHub Desktop.
Save viper25/9c3eb9936986cd6693ad17d16cc1650b to your computer and use it in GitHub Desktop.
Find a process and kill it
ps -ef | grep 'mybot' | grep -v grep | awk '{print $2}' | xargs kill -9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment