Skip to content

Instantly share code, notes, and snippets.

@tgcnzn
Created February 22, 2017 21:56
Show Gist options
  • Save tgcnzn/226c28315647871d346d5b40f05bab4d to your computer and use it in GitHub Desktop.
Save tgcnzn/226c28315647871d346d5b40f05bab4d to your computer and use it in GitHub Desktop.
To list any process listening to the port 8080:
lsof -i:8080
To kill any process listening to the port 8080:
kill $(lsof -t -i:8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment