Linux Guides

What is netstat Command?

The netstat command in Linux provides detailed insights into network connections, routing, and traffic.

Linux Guides

Check Active Connections

Use netstat -tuln to view active TCP and UDP connections with listening ports.

Display Routing Table

Run netstat -r to see the kernel routing table and understand network traffic paths.

Linux Guides

Monitor Network Statistics

Use netstat -s to display detailed network statistics like packet counts and errors.

Linux Guides

Filter Results for Insights

Combine netstat with grep, like netstat -tuln | grep :80, to find specific connections quickly.

Linux Guides