Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

netstat

Network connections and statistics

Syntax

netstat [OPTION]...

Common Options

-tShow TCP connections
-uShow UDP connections
-lShow listening ports
-nShow numeric addresses
-pShow process info
-aShow all connections

Common Examples

netstat -tlnp

Show listening ports

netstat -an

Show all connections

netstat -s

Show statistics

Related Commands

Related Tools

More Code & Dev Tools