Linux Open Port Scanning

As safety is always first you may want to find out if you have any back doors open in your system. One way to do this in linux is nmap. You can use the following commands:


  1. sudo nmap -sS -O

This will scan your system for any open tcp connections.


  1. sudo nmap -sU

This will do an udp port scan.


  1. sudo nmap -sS -O -p 20-25

You can scan for open port range with the command above


  1. sudo nmap -sS -F

Additionally this will do a fast limited tcp port scan


You can also do a scan for connection on a particular port and count them using the following command:

netstat -an | grep 80 | wc -l   




Example of a port scan:

Was this article helpful?
0 out of 0 found this helpful

Have more questions? Contact our support instantly via Live Chat