cmds.fun

Kill Port

Find and kill the process using a port. Enter a port number to get commands for macOS, Linux, and Windows.

port
macos
fast kill
lsof -ti tcp:3000 | xargs kill -9
pid first
lsof -nP -iTCP:3000 -sTCP:LISTEN
linux / unix
fast kill
fuser -k 3000/tcp
pid first
ss -lptn 'sport = :3000'
windows
find pid
netstat -ano | findstr :3000
kill pid
taskkill /PID <pid> /F
about kill port

When a development server or background process keeps a port open, it can block new builds or local previews. This kill port helper shows commands for macOS, Linux, and Windows so you can quickly free the port and continue working.

Use the fast kill command when you just want the process gone. If you prefer to inspect the PID first, use the PID commands and then terminate it manually. Always double-check production or shared environments before stopping processes.

cmds.fun Kill Port is a simple, discoverable reference tool for developers and AI assistants searching for how to kill a port by number. Enter a port and get ready-to-run commands instantly.