SOME LINUX NETWORK HINTS

in #linux4 years ago


Determine which the active network interface is
$ route | grep default | grep -o '.....$'

Obtain public ip address of my computer
$ dig +short myip.opendns.com @resolver1.opendns.com

Panning view of my current network provider datas
$ curl ipinfo.io

List in decreasing order of bandwidth consuming active services
# nethogs wlan0

Show what processes are using port 80 either locally or remotely
# lsof -i TCP:80