Skip to content

Instantly share code, notes, and snippets.

@pajcho
Created October 6, 2014 08:13
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 pajcho/5bf55f73263897492817 to your computer and use it in GitHub Desktop.
Save pajcho/5bf55f73263897492817 to your computer and use it in GitHub Desktop.
Check processes that listen on a port and kill them
lsof -n -i4TCP:$PORT | grep LISTEN
sudo killall $PROCESS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment