Unix Networking Commands (curl, wget, netstat, ss, nmap, dig, ping, traceroute)
Network diagnostics and data transfer: curl/wget (HTTP), netstat/ss (socket stats), nmap (port scanning), dig (DNS), ping/traceroute (connectivity).
Network diagnostics and data transfer: curl/wget (HTTP), netstat/ss (socket stats), nmap (port scanning), dig (DNS), ping/traceroute (connectivity).
Unix networking commands with purpose, common usage, important options and notes: curl, wget, ss, netstat, nmap, dig, ping and traceroute.
| Name | Purpose | Common usage | Important options | Example output type | Related commands | Notes | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| curl | Transfer data from or to a server using various protocols (HTTP, HTTPS, FTP, SCP, SFTP, etc.) | curl [options] <URL> | 12 rows
| HTTP response body, headers, or status code (with -w) |
| curl doesn't follow redirects by default (-L). Use -w '%{http_code}' to capture status. Supports multi-part uploads (-F). Can send multiple requests with --next. Extremely scriptable for API testing. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| wget | Non-interactive network downloader. Retrieves files via HTTP, HTTPS, FTP. | wget [options] <URL> | 10 rows
| File saved to disk, progress bar on stderr |
| wget is recursive by design (good for mirroring). -c resumable downloads work only if server supports Range header. Good for cron jobs (non-interactive). Can download multiple URLs from file via -i. Lacks curl's protocol variety. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ss (Socket Statistics) | Investigate network sockets and connections. Modern replacement for netstat (faster, more detailed). | ss [options] [filter] | 11 rows
| Table: Netid, State, Recv-Q, Send-Q, Local Address:Port, Peer Address:Port, Process |
| ss reads directly from kernel via netlink (faster than netstat's /proc parsing). Filters: state = (established, listen, etc.), dport = :80, src 192.168.1.1. -p requires root for other users' processes. Essential for diagnosing connections and listening ports. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| netstat | Display network connections, routing tables, interface stats, masquerade connections, and multicast memberships. | netstat [options] | 11 rows
| Table: Proto, Recv-Q, Send-Q, Local Address, Foreign Address, State, PID/Program name |
| netstat is deprecated in favor of ss and ip. Still ubiquitous. -anp shows all connections with processes. Routing table: netstat -rn. Interface stats: netstat -i. Use -s to see packet loss/errors per protocol. Can be slow on systems with many connections. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| nmap | Network exploration and security auditing. Port scanning, service detection, OS fingerprinting. | nmap [options] <target> | 11 rows
| Port table: PORT, STATE (open/closed/filtered), SERVICE, VERSION |
| Scanning requires authorization. SYN scan (-sS) is stealthy but needs root. States: open (listening), closed (not listening), filtered (firewall). -p- scans all 65535 ports (slow). Version detection (-sV) helps identify services. NSE scripts automate vulnerability checks. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| dig (Domain Information Groper) | DNS lookup utility. Query DNS servers for resource records. Powerful debugging tool for DNS issues. | dig [@server] <name> [<type>] | 9 rows
| DNS response sections: ANSWER (records), AUTHORITY (NS records), ADDITIONAL (glue), STATUS (NOERROR/NXDOMAIN) |
| dig output shows header, question, answer, authority, additional sections. +short for quick checks. Use dig +trace to see full delegation chain. Reverse: dig -x 8.8.8.8. Compare answers from multiple servers by changing @1.1.1.1, @8.8.8.8. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ping | Test network reachability and round-trip time (RTT) using ICMP echo requests. | ping [options] <host/IP> | 8 rows
| Lines: 64 bytes from host: icmp_seq=N ttl=64 time=XX.X ms, plus summary statistics |
| Measures latency and packet loss. ICMP may be blocked by firewalls. Standard ping packet: 56 bytes data + 8 bytes ICMP header = 64 bytes total. Use ping -c 4 google.com for quick check. -f flood can be used for DoS testing (ethically only on your own network). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| traceroute | Trace network path to destination, showing each hop (router) and round-trip time. Uses TTL expiration (ICMP Time Exceeded). | traceroute [options] <host> | 8 rows
| Lines: hop_number host_name (IP) probe1_ms probe2_ms probe3_ms [* = timeout] |
| Shows path and latency per hop. Each hop decrements TTL; TTL=0 returns ICMP Time Exceeded. Some routers block ICMP, showing * (but path still exists). Use traceroute -I if UDP blocked. mtr combines traceroute + ping for continuous monitoring. |
The shape of this dataset, read from the data itself: every column, its type and a real value. Agents can use this to plan a query without fetching the whole document.
| Section | Field | Type | Example |
|---|---|---|---|
| commands | name | string | curl |
| commands | purpose | string | Transfer data from or to a server using various… |
| commands | common_usage | string | curl [options] <URL> |
| commands | important_options | array | [12 items] |
| commands | example_output_type | string | HTTP response body, headers, or status code (wi… |
| commands | related_commands | array | [3 items] |
| commands | notes | string | curl doesn't follow redirects by default (-L). … |
The static files contain the same reference rows as the API, with no API rate limit. Live metadata, such as view counts, may differ. Use the API for content negotiation; use the static files for a cacheable snapshot.
curl "https://yjtoon.yunusemrevurgun.com/api/dataset/unix-networking-commands?format=toon"
const res = await fetch( "https://yjtoon.yunusemrevurgun.com/static-data/dataset/unix-networking-commands.toon" ); const toon = await res.text();
Rate limit: 120 requests per minute per IP, no key and no signup. API reference →