Skip to content

Instantly share code, notes, and snippets.

@ErickWendel
Last active March 6, 2018 13:25
Show Gist options
  • Save ErickWendel/1630d8333cef50e833b9be7b91294d63 to your computer and use it in GitHub Desktop.
Save ErickWendel/1630d8333cef50e833b9be7b91294d63 to your computer and use it in GitHub Desktop.
#Exibir processos de uma porta
PORT=3000
lsof -i:$PORT
#Matar todos os processos de uma porta
kill -9 $(lsof -t -i:$PORT -sTCP:LISTEN)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment