- netstat
Show ports used with netstat
$ sudo netstat -tulpn
- sudo - regular user won't see everything
- -t show tcp
- -u show udp
- -l show only listening sockets
- -p show both PID and the name of the program
- -n show numberic IP and port
$ sudo netstat -tulpn