Cursor CommandsCursor Commands
CategoriesExamples

Kill Dev Server on Port 3000

Kills any process running on port 3000. If no process is found, it prints a message indicating that no dev server is running.

Command Code

kill -9 $(lsof -ti:3000) 2>/dev/null || echo "No dev server running on port 3000"