Sometimes you have a process you lost the PID, and would like to kill it.
You can use top (or better htop) to search for your process name and press k to kill it.
But this isn’t optimal when you aren’t sure of its name.
A better alternative is to search by the port opened, for example port 80:
sudo lsof -i :80Remember to use sudo. The process PID will be in the second column.
Happy process killin’ 👾