Network

Get wifi password

>_ cat /etc/NetworkManager/system-connections/[SSID] | grep psk=
copy

List network interfaces

>_ lspci | egrep -i --color 'network|ethernet'
copy
>_ ifconfig -a
copy
>_ ip link show
copy
>_ lshw -class network
copy
>_ cat /proc/net/dev
copy

Download file

>_ wget [url]
copy
>_ curl -O [url]
copy

Get information about domain

>_ whois [ip]
copy

Ping to another device

>_ ping [ip]
copy

Configure network interface

Show the hostname of your box

>_ hostname [ip]
copy

Trace the path that a packet takes to its destination

>_ traceroute [ip]
copy

Telnet connection

>_ telnet [ip] [port]
copy

DNS lookup and display server answer

>_ dig [ip]
copy

Release ip and get a new one from DHCP

>_ dhclient -r
copy

List open sockets

>_ netstat -l
copy
>_ lsof -i
copy
Copied to clipboard
free 100$ digital ocean credit