Skip to content
cheatsheet
home
/
cv
/
weblog
/
cheatsheet
/
proxy
/
vpn
/
status
/
links
EN
RU
☾
New version available
reload
×
cheatsheet
/
linux
/
Show network interface stats
Show network interface stats
linux
TX/RX bytes, errors, drops for an interface
ip -s link show eth0
⎘ copy
#linux
#network
#monitoring
more linux
all 133 commands →
DNS lookup
dig +short A example.com @8.8.8.8
Reverse DNS lookup
dig +short -x 8.8.8.8
Trace DNS delegation
dig +trace example.com
Show established TCP connections
ss -tnp state established
Count connections per state
ss -tan | awk 'NR>1{print $1}' | sort | uniq -c | sort -rn