1bashThis demonstrates using curl to download a resource, resume if interrupted, follow redirects, and save it with the original filename.curl -C - -L -O "https://example.com/example.resource"external toolscurldownload resource
2bashThis script uses rsync to move the contents of /foo to /bar with archive mode, compression, and verbose output, preserving permissions, timestamps, and other attributes.rsync --archive --compress --verbose /foo /barexternal toolsrsync
3bashThis demonstrates creating a symbolic link with the ln command, forcing overwrite if the link exists.ln --symbolic --force foo barexternal toolslnsymbolic linksforce overwrite
4bashThis script creates a directory foo/bar and any necessary parent directories using the mkdir command with the --parents option.mkdir --parents foo/barexternal toolsmkdir
5bashThis demonstrates using sed to perform a global search and replace in a file.sed 's/fox/bear/g' foo.txtexternal toolssedsearch and replace
6bashThis demonstrates extracting the contents of a tar archive using the tar command.tar --extract --file=foo.tarexternal toolstarextracting files
7bashThis demonstrates using nmap to perform a ping scan on a local IP range to identify active hosts on the network.nmap -sP 192.168.1.1/24external toolsnmapnetwork scanningping scan
8bashThis demonstrates file creation using the touch command in Bash.touch foo.txtexternal toolstouchfile creation
9bashThis demonstrates using mtr to perform network diagnostics on a domain with a detailed report.mtr --report-wide example.comexternal toolsmtrnetwork diagnostics
10bashThis demonstrates listing all PCI devices connected to the system using the lspci command.lspciexternal toolslspcihardware information retrieval
11bashThis script uses rsync to synchronize and copy the contents of the /foo directory to the /bar directory on a remote host with archive mode, verbose output, and compression.rsync -avz /foo username@hostname:/barexternal toolsrsync
12bashThis demonstrates installing the wget package using the apt package manager.apt install wgetexternal toolsaptpackage installation
13bashThis script forcefully deletes the file foo.txt using the rm command with the --force option.rm --force foo.txtexternal toolsrmfile deletion
14bashThis demonstrates querying DNS records for a domain using the dig command.dig example.comexternal toolsdigDNS query
15bashThis demonstrates using the find command to locate a file by name within a specified directory.find /path -name foo.txtexternal toolsfindfile search by name
16bashThis demonstrates using sed to perform in-place text replacement in a file.sed 's/fox/bear/g' foo.txt --in-placeexternal toolssedin-place text replacement
17bashThis code lists all USB devices connected to the system using the lsusb command.lsusbexternal toolslsusbusb devices listing
18bashThis script searches for lines in the file /bar that do not contain the string foo.grep 'foo' /bar --invert-matchexternal toolsgrep
19bashThis demonstrates using the lshw command to list detailed hardware information.lshwexternal toolslshwhardware information
20bashThis demonstrates listing the current user's cron jobs using crontab -l.crontab -lexternal toolscrontablisting cron jobs