Monday, March 29, 2010

Check what ports are open

There are two good methods to see what ports are open in Linux you can use
nmap which is a port scanner and you can use netstat.

nmap can be used to scan your machine to see whats ports are open issue the
following command to scan your computers machine:

nmap -sS -O

The second method was netstat. netstat can show hidden ports and what programs using
them issue the following command as root:

netstat -nap