Skip to content

Instantly share code, notes, and snippets.

@alidevhere
Last active April 25, 2022 21:54
Show Gist options
  • Save alidevhere/78f046894539bd46c48f9079b6a4278d to your computer and use it in GitHub Desktop.
Save alidevhere/78f046894539bd46c48f9079b6a4278d to your computer and use it in GitHub Desktop.
find and kill a process running on a port

Find and kill process running on a port

sudo apt-get install lsof 
lsof -i:8080
kill $(lsof -t -i:8080) 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment