← Back to Portfolio

🐧 Linux Modern vs Legacy Commands

A comprehensive reference for transitioning from legacy networking commands to modern alternatives.

CategoryModern Command (ip/ss)Legacy Command (ifconfig/netstat)Description
Addressingip addr showifconfigShow all IP addresses
Interfacesip link showifconfig -aShow interface status
Routingip route showroute -nShow routing table
ARP/Neighborsip neigh showarp -nShow ARP cache
Ports/Connectionsss -tulnnetstat -tulnpShow listening ports
Statisticsss -snetstat -sSocket statistics
Bring up interfaceip link set eth0 upifconfig eth0 upEnable interface
Add IP addressip addr add 192.168.1.10/24 dev eth0ifconfig eth0 add 192.168.1.10Assign IP
Add routeip route add 192.168.2.0/24 via 192.168.1.1route add -net 192.168.2.0/24 gw 192.168.1.1Add network route

📌 Pro tip: Use ip -br addr for a compact, script-friendly output.