DevKB
Web Development Knowledge Base
HOME | TOP 20 | WRITE AN ARTICLE |
Sections :


RSS RSS Feed

Vous aussi, aidez les autres développeurs, publiez vos bouts de codes utiles et vos liens préférés ...
Publiez un article !


Valid HTML 4.0 Transitional

Plateforme d'envoi de gros fichiers en ligne
Script PHP de boutique en ligne
Mondes virtuels gratuits en 3D

Olivier Ligny - - 12/03/2008 - vue 69 fois

How to list listening ports on Linux

Here is a command to see the listening ports on a Linux server : Apache, Bind, MySQL, and so on ...
It shows the ports numbers, the network adress (127.0.0.1), the processus which is listening and its PID.

echo "Open Ports:" ; netstat -anp | grep LISTEN | grep tcp | awk  '{print $4, "t", $7}' | more

Useful to see if a server is active, or to detect backdoors.




Write a comment :
Your name :     E-mail (optional) :

AntiSpam : please write the sum of 1 + 7 =