Network - Linux Command Library
Network - Linux Command Library
Network
External ip Configure network interface
$ curl ifconfig.me $ ifconfig
$ dig +short myip.opendns.com @resolver
1.opendns.com
Show the hostname of your box
$ netcat icanhazip.com 80 <<< $'GET / HT
$ hostname [ip]
TP/1.1 Host: icanhazip.com ' | tail -n1
$ ifconfig -a
$ ip link show DNS lookup and display server
answer
$ lshw -class network
$ dig [ip]
$ cat /proc/net/dev
https://linuxcommandlibrary.com/basic/network 1/2
12/2/24, 10:13 Network | Basic | Cheat sheet | Linux Command Library
All man pages are copyrighted by their respective authors. Thanks to TLDR and commandlinefu.com
Simon Schubert - [email protected]
My other projects:
https://linuxcommandlibrary.com/basic/network 2/2