21bashThis demonstrates making an HTTP request with basic authentication using curl.curl http://user:password@example.org/external toolscurlHTTP requestbasic authentication
22bashThis demonstrates using curl to make an HTTP request through a proxy server.curl --proxy http://proxy.example.org:4321 http://remote.example.org/external toolscurlHTTP request with proxy
23bashThis code uses curl to send an HTTP GET request to a web server at a specified port.curl http://www.example.org:1234/external toolscurlHTTP requestsGET request
24bashThis demonstrates using curl to make an HTTP request while overriding DNS resolution for a specific domain.curl --resolve www.example.org:80:127.0.0.1 http://www.example.org/external toolscurlHTTP request with custom DNS resolution
25bashThis demonstrates advanced debugging with curl by capturing detailed trace information of an HTTP request.curl --trace-ascii d.txt --trace-ids http://example.com/external toolscurldebuggingHTTP request tracing
26bashThis demonstrates using curl to send an HTTP request and log detailed request/response traces with timestamps.curl --trace-ascii d.txt --trace-time http://example.com/external toolscurlrequest tracing and debugging
27bashThis demonstrates debugging HTTP requests using curl's --trace-ascii option to log detailed request and response traces.curl --trace-ascii debugdump.txt http://www.example.com/external toolscurldebugging and tracingrequest tracing
28bashThis demonstrates basic awk usage for extracting specific fields from text.echo -e "hello world\nawk cheatsheet" | awk '{print $2}'external toolsawkfield extraction
29bashThis demonstrates using the tee command to write output to both stdout and a file simultaneously.echo "Log this" | tee logfile.txtexternal toolsteeoutput redirection
30bashThis script finds all .txt files in the current directory and its subdirectories and deletes them.find . -name "*.txt" -exec rm {} \;external toolsfind
31bashThis script demonstrates parallel execution by using xargs to run the sleep command in parallel for numbers 1 through 10, with up to 4 processes running simultaneously.echo {1..10} | xargs -n 1 -P 4 sleepexternal toolsxargsparallel task execution
32bashThis demonstrates extracting the second word from a string using awk.echo "hello world" | awk '{print $2}'external toolsawkbasic field extraction
33bashThis demonstrates listing and sorting directory contents in a user-friendly format using ls.ls -lh --sort=timeexternal toolslssorting and formatting options
34bashThis demonstrates comparing the output of two commands using diff and process substitution.diff <(echo -e "12\n456") <(echo -e "123\n456")external toolsdiffprocess substitution
35bashThis demonstrates downloading multiple files from a website using curl with a range pattern.curl "http://somewebsite.com/files[0001-0010].txt" -o "file_#1.txt"external toolscurlfile downloadingrange pattern
36bashThis demonstrates profiling HTTP request timings using curl by measuring connection time, time to first byte, and total time for a request.curl -w "Connect time: %{time_connect} Time to first byte: %{time_starttransfer} Total: %{time_total} \n" "http://example.com/1/endpoint" -s -o /dev/nullexternal toolscurlHTTP request timing profiling
37bashThis demonstrates calculating the logarithm of 100 with base 10 using the bc command.echo 'l(100)/l(10)' | bc -lexternal toolsbcmathematical computation
38bashThis demonstrates pattern matching and substitution using sed with a custom delimiter.echo "The quick brown fox jumps over the lazy dog." | sed -n "s|the \(.*\) dog|something else|p"external toolssedpattern matching and substitution
39bashThis code uses sed to extract and manipulate a substring from the input string. It captures the word before "dog" and prints a modified sentence: "What is the dog? lazy". This demonstrates pattern matching and substitution using sed.echo "The quick brown fox jumps over the lazy dog." | sed -n "s|.*the \(.*\) dog.*|What is the dog? \1|p"external toolssed
40bashThis demonstrates pattern matching and extraction using sed in Bash.echo "The quick brown fox jumps over the lazy dog." | sed -n "s|.*\(the .* dog\).*|\1|p"external toolssedpattern matching and extraction