Skip to content

Instantly share code, notes, and snippets.

@remarkablemark
Created June 6, 2016 21:15
Show Gist options
  • Select an option

  • Save remarkablemark/2c2e0aed96fee28b8d8db8cc70654aa2 to your computer and use it in GitHub Desktop.

Select an option

Save remarkablemark/2c2e0aed96fee28b8d8db8cc70654aa2 to your computer and use it in GitHub Desktop.
Kill a port that's already in use.
#!/usr/bin/env bash
# for Mac OS X, kill processes associated with port 8000
sudo lsof -t -i tcp:8000 | xargs kill -9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment