netstat
Linux · Network · available in the simulator
What it does
Displays network connections, listening ports, and routing tables.
Syntax
netstat [opciones]
Options and parameters
-tDisplays TCP connections.
-uDisplays UDP connections.
-lDisplays listening ports only.
netstat -tuln-nDisplays numerical addresses and ports without resolving names.
-pDisplays the process owning each connection; requires privileges.
-rDisplays the routing table.
Usage examples
netstat -tuln
Notes and common mistakes
- Deprecated on many distributions; the modern alternative is ss.