Online Linux Terminal Logo
OnlineLinuxTerminal
Red y transferenciaCLI Manual

$netstat

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

Sintaxis del comandoPOSIX Standard
netstat [OPTIONS]
Comunidad Linux2.4k En línea

Chatea con usuarios de Linux, aprende comandos y descarga guías PDF.

Prueba en vivo en la terminal interactiva

Simulación del lado del cliente sin instalación y con respuesta inmediata.

Abrir en terminal de pantalla completa ↗
bash — terminal

Descripción general y funcionamiento

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

Opciones y banderas comunes

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.

Ejemplos prácticos del mundo real

#1Check all listening ports and services
netstat -tuln

Lists all open TCP and UDP ports in numeric format.