What are deprecated?

  • ifconfig
  • netstats
  • route

What are the better options?

  • ip
  • ss
  • lsof -iTCP

Basic usages

Command ip

Show / manipulate routing, network devices, interfaces and tunnels

  • Show ip adresses: ip address or ip a
  • Show network devices: ip link or ip l
  • Show routing table entry: ip route or ip r
  • Use color output: for example ip -c a, ip -c l

Command ss

Another utility to investigate sockets

  • Show processes with listening TCP sockets: ss -plt
  • For more infomation: man ss

Command lsof

Here is a good article about this command.

For finding processes running on port 8080:

lsof -iTCP:8080