Online Linux Terminal Logo
OnlineLinuxTerminal
Réseau et transfertCLI Manual

$netstat

Print network connections, routing tables, interface statistics, and listening ports.

Syntaxe de la commandePOSIX Standard
netstat [OPTIONS]
Communauté Linux2.4k En ligne

Échangez avec des utilisateurs Linux, apprenez des commandes et téléchargez des PDF.

Essayer en direct dans le bac à sable interactif

Simulation côté client sans installation avec retour instantané.

Ouvrir dans le terminal plein écran ↗
bash — terminal

Aperçu et fonctionnement

`netstat` (Network Statistics) provides comprehensive visibility into incoming and outgoing network connections, listening TCP/UDP ports, routing tables, and interface metrics.

Options et drapeaux courants

Flag / OptionDescription
-tDisplay TCP network connections.
-uDisplay UDP network connections.
-lShow only listening server sockets.
-pShow the PID and program name to which each socket belongs.
-nShow numerical addresses and port numbers instead of resolving hostnames.

Exemples pratiques du monde réel

#1Check all listening ports and services

Lists all open TCP and UDP ports in numeric format.