kill processes in ports code example Example 1: kill port lsof -i:8080 Example 2: kill all process at port lsof -ti tcp:2525 | xargs kill