Network Information in Linux

From the Linux Essential Commands cheat sheet · Networking · verified Jul 2026

Network Information

View network interfaces, connections, and routing

bash
# IP address
ip addr
ip a

# Network statistics
netstat -tuln      # Listening ports
netstat -ant       # All connections

# Modern alternative
ss -tuln           # Listening ports
ss -ant            # All 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 Essential Commands

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

More Linux tasks

Back to the full Linux Essential Commands cheat sheet