kill top process code example Example 1: kill all process at port lsof -ti tcp:2525 | xargs kill Example 2: kill all process killall node -9