LinuxQuestions.org

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

ayongying 05-28-2010 08: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 08: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 09:09 PM.