Network Information in Linux

From the Linux Commands cheat sheet · Networking · verified Nov 2026

Network Information

View network interfaces, connections, and routing

bash
# IP address and routes
ip addr
ip a
ip route           # Routing table

# Legacy netstat (net-tools, often not installed)
netstat -tuln      # Listening ports
netstat -ant       # All TCP connections

# Modern alternative
ss -tuln           # Listening ports
ss -ant            # All TCP connections
✅ ip addr shows all network interfaces and IPs
💡 ss is faster and more modern than netstat
🔍 -tuln shows TCP/UDP listening ports with numbers
networkipnetstatconnections

Continue with Linux Commands

Save the full cheat sheet or work through every related task.

More Linux tasks

Back to the full Linux Commands cheat sheet