What are deprecated?
ifconfignetstatsroute
What are the better options?
ipsslsof -iTCP
Basic usages
Command ip
Show / manipulate routing, network devices, interfaces and tunnels
- Show ip adresses:
ip addressorip a - Show network devices:
ip linkorip l - Show routing table entry:
ip routeorip 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