101bashThis demonstrates using curl with basic authentication to access a URL by specifying a username and password.curl --user name:password http://www.example.comexternal toolscurlHTTP requestsbasic authentication
102bashThis demonstrates reading and printing the contents of a file using the cat command.cat foo.txtexternal toolscatfile reading and printing
103bashThis demonstrates listing files and directories sorted by modification time, with the most recently modified files appearing first.ls -texternal toolslssorting optionsby modification time
104bashThis demonstrates connecting to a remote host via SSH using a custom port.ssh user@hostname -p 8765external toolssshremote connectioncustom port
105bashThis demonstrates how to copy directories and their contents recursively using the cp command.cp --recursive foo barexternal toolscpdirectory copy
106bashThis demonstrates using the find command to search for directories by name within a specified path.find /path -type d -name fooexternal toolsfinddirectory search
107bashThis script converts a file from one format to another using pandoc, requiring an input file and an output file as arguments.INPUT_FILE=${1:?'is required'} OUTPUT_FILE=${2:?'is required'} pandoc $INPUT_FILE -o $OUTPUT_FILEexternal toolspandocfile format conversion
108bashThis script searches for the string foo in the file /bar and displays the line numbers where matches occur.grep 'foo' /bar --line-numberexternal toolsgrep
109bashThis code uses curl to make a request to curl.se through a proxy server, authenticating with the username proxyuser and password proxypassword. This demonstrates how to use curl with proxy authentication.curl --proxy-user proxyuser:proxypassword curl.seexternal toolscurl
110bashlinuxThis demonstrates listing all running processes on a Linux system using ps aux, displaying detailed information such as CPU and memory usage.ps auxexternal toolspsprocess listing
111bashThis demonstrates creating nested directories using brace expansion and the --parents option in a single command.mkdir --parents {foo,bar}/bazexternal toolsmkdirdirectory creationwith --parents and brace expansion
112bashThis demonstrates file truncation using the truncate command to clear a file's contents.truncate -s 0 filenameexternal toolstruncatefile truncation
113bashThis demonstrates the removal of an empty directory using the rmdir command.rmdir fooexternal toolsrmdirdirectory removal
114bashThis demonstrates using curl to make an HTTP request with a specified referer header.curl --referer http://www.example.come http://www.example.comexternal toolscurlHTTP requestreferer header
115bashDelete the directory foo and its contents recursively and forcefully using the rm command. This demonstrates how to remove directories and their contents without prompting for confirmation.rm --recursive --force fooexternal toolsrm
116bashThis 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
117bashThis demonstrates decompressing files from a ZIP archive using the unzip command.unzip foo.zipexternal toolsunziparchive extraction
118bashThis 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
119bashThis demonstrates sending an HTTP request with a custom user-agent using curl.curl --user-agent "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" [URL]external toolscurlhttp requestscustom user-agent
120bashThis 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