61bashThis demonstrates sending an HTTP GET request with a custom User-Agent header using curl.curl --header "User-Agent: Foo" https://example.comexternal toolscurlHTTP requestcustom headers
62bashThis demonstrates using the sort command to sort the contents of a file in ascending order.sort random_order.txtexternal toolssortbasic file content sorting
63bashThis demonstrates extracting the directory path from a file path using the dirname command.dirname "/My/path/to/file.txt"external toolsdirnamefile path manipulation
64bashRemove duplicate lines from the sales.csv file using the uniq command. This demonstrates filtering unique lines from a file.uniq sales.csvexternal toolsuniq
65bashThis demonstrates connecting to a remote host using SSH with a specified username, hostname, and port.ssh ssh://user@hostname:8765external toolssshremote connection
66bashThis demonstrates process management and system monitoring using the htop command.htopexternal toolshtopprocess management
67bashThis demonstrates using wget to download a file from a URL and save it locally.wget --output-document foo.txt https://example.com/file.txtexternal toolswgetfile download (HTTP request)
68bashThis 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
69bashThis demonstrates configuring an SSH connection using the ~/.ssh/config file to simplify SSH connections with predefined settings.cat ~/.ssh/config #>Host name #> User foo #> Hostname 127.0.0.1 #> Port 8765 ssh nameexternal toolssshSSH configuration
70bashThis demonstrates using the tee command to write output to both stdout and a file simultaneously.echo "Log this" | tee logfile.txtexternal toolsteeoutput redirection
71bashThis demonstrates using the free command to display the system's memory usage.freeexternal toolsfreememory monitoring
72bashThis demonstrates the use of the env command to print all environment variables in the current shell session.envexternal toolsenvenvironment variable inspection
73bashThis demonstrates character translation using the tr command in Bash, replacing specified characters with others.echo "Hello" | tr 'el' 'x' #Result: Hxxxo echo "Hello" | tr 'el' 'ay' #Result: Hayyoexternal toolstrcharacter translation
74bashThis demonstrates comparing the output of two commands using diff and process substitution.diff <(echo -e "12\n456") <(echo -e "123\n456")external toolsdiffprocess substitution
75bashSearch for the string Foo in the file /bar using grep with case-insensitive matching. This demonstrates how to find text in a file while ignoring case sensitivity.grep 'Foo' /bar --ignore-caseexternal toolsgrep
76bashThis script searches for lines in file.txt that start with foo and end with bar, then excludes any lines containing baz.grep "^foo.*bar$" file.txt | grep -v "baz"external toolsgrep
77bashThis script finds all .txt files in the current directory and its subdirectories and deletes them.find . -name "*.txt" -exec rm {} \;external toolsfind
78bashThis demonstrates using the lsof command to list open files and their associated processes.lsofexternal toolslsoffile and process inspection
79bashThis demonstrates using lsof to list processes occupying TCP port 4000.lsof -itcp:4000external toolslsofnetwork port inspection
80bashThis demonstrates using the tr command to transform text case between uppercase and lowercase.echo "Hello" | tr '[:lower:]' '[:upper:]' #Result: HELLO echo "Hello" | tr '[:upper:]' '[:lower:]' #Result: helloexternal toolstrtext transformationcase conversion