mac kill port 3000 xargs kill code example Example: kill process on port 3000 mac kill $(lsof -ti:3000,3001,8080)