how to kill all PIDs on a port code example Example: kill all process at port lsof -ti tcp:2525 | xargs kill