list port number in linux code example Example 1: linux see used ports netstat -tulpn Example 2: show port list in centos # netstat -tulnp