Kill process running on port

linux
Jan 9, 2023

To get the open file:

sudo lsof -i:8080

lsof command output

To kill it one go

sudo kill -9 `sudo lsof -t -i:8080`