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



RSS RSS Feed

You too, please publish your useful code snippets in any programming language :
write an article !


Valid HTML 4.0 Transitional

Plateforme d'envoi de gros fichiers en ligne
Dépannage site web
Blog infogérance
Hébergement e-mail

Olivier Ligny - - 12/03/2008 - vue 2997 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 : what animal is visible on this picture ? :

Nos partenaires : iPhone 8 Cases & Protection