How to locate and close an open port in Linux Locating and blocking unwanted open ports in Linux should be a task every network admin knows how to do.