Skip to content

.tip

· one of the small things

lsof -i :3000 names the process holding the port

You get "Address already in use" and have no idea what's using it.

lsof -nP -i :3000
kill $(lsof -t -i :3000)

-t prints only the pid, so it's safe to hand to kill. -nP skips the DNS and port-name lookups that make it slow.

shelldebugging