Network Commands
Linux Essentials +
Command | Description |
---|---|
ip addr show |
Displays all network interfaces and their information. |
ip address add 192.168.0.1/24 dev eth0 |
Assigns IP address 192.168.0.1 to interface eth0. |
ifconfig |
Shows network interfaces and their configuration. |
ping host |
Sends ICMP packets, measures round-trip time to "host". |
whois domain |
Retrieves and displays domain's registration information. |
dig domain |
Queries DNS, provides domain's DNS information. |
dig -x host |
Resolves IP address to hostname, shows DNS information. |
host google.com |
Performs an IP lookup for the domain name. |
wget file_path |
Downloads file from specified path. |
netstat |
Displays various network-related information and statistics. |
ss |
Display information about network sockets. |