How to Check for Open Ports in Linux with netstat, lsof, and nmap March 20, 2022 This article explains how to use the netstat, lsof, and nmap commands to find out which services are listening on which ports.