Skip to content

Instantly share code, notes, and snippets.

@robertolos
Created April 14, 2022 07:05
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 robertolos/acbb1f9692a3e598a67117b6048f7034 to your computer and use it in GitHub Desktop.
Save robertolos/acbb1f9692a3e598a67117b6048f7034 to your computer and use it in GitHub Desktop.
Kill process running on port 3000
lsof -i 4tcp:3000 -sTCP:LISTEN | awk '{if(NR>1)print $2}' | xargs kill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment