kill a aport in linux code example Example 1: kill a port kill $(lsof -ti:3000) Example 2: kill a process at a port fuser -k 8080/tcp