single-line command to find the process running on port 8000 and kill it:
sudo kill -9 $(sudo lsof -t -i:8000)
lsof -t -i:8000 → finds the PID of the process using port 8000.kill -9 $(...) → force kills that process.sudo ensures you have permission to view and kill the process.