You are here

A few network-related commands

Netstat

  • how to know which program is listening on which port:
sudo netstat -lnptu

Nmap

  • ports listening for TCP connections from the network:
nmap -sT -O <hostIPAddress>