LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   What UNIX command do you use to find out the open ports? (https://www.linuxquestions.org/questions/linux-general-1/what-unix-command-do-you-use-to-find-out-the-open-ports-810681/)

ayongying 05-28-2010 07:43 AM

What UNIX command do you use to find out the open ports?
 
What UNIX command do you use to find out the open ports in a system?

Thanks

sycamorex 05-28-2010 07:46 AM

You could use (as root):
nmap -sS IP-address
Code:

nmap -sS 192.168.1.45
or a range of addresses:
Code:

nmap -sS 192.168.1.1-254


All times are GMT -5. The time now is 08:41 PM.