LinuxLinux NetworkLinuxExternal IP curl ifconfig.me External IP (alternative) dig +short myip.opendns.com @resolver1.opendns.com External IP (another alternative) netcat icanhazip.com 80 <<< $'GET / HTTP/1.1 Host: icanhazip.com ' | tail -n1 Get Wi-Fi password cat /etc/NetworkManager/system-connections/[SSID] | grep psk= List network interfaces lspci | egrep -i --color 'network|ethernet' List network interfaces (alternative) ifconfig -a List network interfaces (another alternative) ip link show List network interfaces (yet another alternative) lshw -class network List network interfaces (simpler alternative) cat /proc/net/dev Download file wget [url] Download file (alternative) curl -O [url] Get information about domain whois [ip] Ping to another device ping [ip] Configure network interface ifconfig Show the hostname of your box hostname [ip] Trace the path that a packet takes to its destination traceroute [ip] Telnet connection telnet [ip] [port] DNS lookup and display server answer dig [ip] Release IP and get a new one from DHCP dhclient -r List open sockets netstat -l List open sockets (alternative) lsof -iPreviousLsofNextOne Liners