Skip to content

Instantly share code, notes, and snippets.

@ratulcse10
Created August 30, 2022 10:53
Show Gist options
  • Save ratulcse10/860ab5e265d7654040207e875cb7fd27 to your computer and use it in GitHub Desktop.
Save ratulcse10/860ab5e265d7654040207e875cb7fd27 to your computer and use it in GitHub Desktop.
find a port and kill
lsof -n -i4TCP:3000
OR lsof -i:3000
Where 3000 is the port number the process is running at
this returns the process id(PID) and run
kill -9 "PID"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment