Now run: killport 3000 → It kills everything on port 3000 instantly. No more hunting for PIDs. grep is slow on large codebases. Use rg (ripgrep) instead. It respects .gitignore and is 10x faster.
Let me know on Twitter/X @rafian (or in the comments below). Enjoyed this? Bookmark rafian.com for more practical dev and productivity posts every Tuesday. rafian.com
Pro tip: I bound this to Ctrl+F in my terminal. Search your entire project in under 1 second. You deleted a file with rm ? On most systems, it’s gone forever. Not anymore. Now run: killport 3000 → It kills everything
# On macOS brew install fzf sudo apt install fzf rafian.com
/terminal-productivity-hacks
# Install ripgrep brew install ripgrep # or sudo apt install ripgrep rg "useEffect" -t js