Deprecated linux commands
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
orip a
- Show network devices:
ip link
orip l
- Show routing table entry:
ip route
orip 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