Find process (macOS/Linux)
lsof -i :3000macOS/LinuxKill by PID
kill -9 <PID>macOS/Linux DestructiveAlternative one-liner
lsof -ti :3000 | xargs kill -9macOS/Linux Destructive
Notes
- Use a normal kill before SIGKILL when possible.
- Verify the port is free with a second lsof check.
Related commands: lsof, kill, ps
Related workflows: Find which process is using a port