(TIL) Nix: Kill Everything Running On A Certain Port

less than 1 minute read

You can quickly kill everything running on a certain port with the following command.

sudo kill `sudo lsof -t -i:3000`

This gets a list of pids for all the processes and then kills them.

Via jbranchaud/til.

Tags: ,

Categories:

Updated:

Comments