Online Linux Terminal Logo
OnlineLinuxTerminal
Netzwerk & ÜbertragungCLI Manual

$netstat

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

BefehlssyntaxPOSIX Standard
netstat [OPTIONS]
Linux-Community2.4k Online

Tausche dich mit Linux-Nutzern aus, lerne Befehle und lade PDF-Cheatsheets herunter.

Live im interaktiven Terminal ausprobieren

Client-seitige Simulation ohne Installation mit sofortigem Feedback.

Im Vollbild-Terminal öffnen ↗
bash — terminal

Überblick & Funktionsweise

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

Wichtige Optionen und Flags

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.

Praktische Anwendungsbeispiele

#1Check all listening ports and services
netstat -tuln

Lists all open TCP and UDP ports in numeric format.