bash
Query DNS records for `example.com` using the `dig` command. This demonstrates how to retrieve DNS information for a domain.
dig
bash
Query DNS records for `example.com` using the `dig` command. This demonstrates how to retrieve DNS information for a domain.
dig
bash
Query the DNS records for `example.com` using the `host` command. This demonstrates how to retrieve DNS information for a domain.
host
bash
This command uses `nmap` to perform a ping scan (`-sP`) on the IP range `192.168.1.1/24`, identifying active hosts on the local network. This is useful for network troubleshooting and discovering devices connected to the network.
nmap
bash
Scan the network host `192.168.4.3` using `nmap` to gather information about open ports and services. This is a basic network troubleshooting command to identify active services on a specific IP address.
nmap
bash
Scan all TCP ports (1-65535) on the localhost (`0.0.0.0`) using `nmap`. This command is useful for network troubleshooting and identifying open ports on a system.
nmap
bash
Scan all network interfaces on the local machine using `nmap`. This command is useful for network troubleshooting and identifying open ports or services running on the system.
nmap
bash
Run a network diagnostic tool `mtr` to trace the route to `example.com`, generating a report with 100 cycles of data collection. This is useful for network troubleshooting and analyzing packet loss or latency issues.
mtr
bash
Use `mtr` with the `--report-wide` option to perform a network diagnostic on `example.com`. This command combines the functionality of `traceroute` and `ping` to provide a detailed report of the network path and packet loss. This demonstrates network troubleshooting.
mtr
bash
The `traceroute` command is used to trace the path that packets take from the local machine to a specified destination (e.g., `example.com`). It helps in diagnosing network issues by showing each hop along the route and the time taken to reach each hop. This is a common tool for network troubleshooting.
traceroute
bash
The `netstat --listening` command lists all the listening ports on the system, which is useful for network troubleshooting and monitoring active connections. This demonstrates how to identify open ports and services.
netstat
bash
Display network interface statistics using the `netstat` command. This is useful for troubleshooting network issues by showing detailed information about network interfaces.
netstat
bash
Display the current routing table using the `ip route show` command. This is useful for network troubleshooting to view the routes that packets will take based on the destination IP addresses.
ip
bash
Display the IP addresses and network interfaces of the system. This command is useful for network troubleshooting and configuration.
ip
bash
Send 10 ICMP echo requests to `example.com` with a 5-second interval between each request. This command is used for network troubleshooting to check connectivity and response times to a specific host.
ping
bash
Send ICMP echo requests to `example.com` to check network connectivity and measure response times. This is a basic network troubleshooting command.
ping
bash
Download a file from `https://example.com/file.txt` and save it as `foo.txt` using the `wget` command. This demonstrates how to perform an HTTP request to fetch a file and save it locally.
wget
bash
Download a file from `https://example.com/file.txt` and save it in the current directory using the `wget` command. This demonstrates how to perform a simple HTTP request to download a file.
wget
bash
Send a POST request with JSON data `{"foo":"bar"}` to `https://example.com` using `curl`. This demonstrates making an HTTP POST request with a JSON payload.
curl
bash
Send an HTTP GET request to `https://example.com` with a custom `User-Agent` header set to `Foo`. This demonstrates how to modify headers in a `curl` request.
curl
bash
Download a file named `foo.txt` from `https://example.com` using `curl` and save it locally with the same name. This demonstrates how to use `curl` to fetch a remote file and save it with a specific name.
curl