rclone

Updated: 31 January 2026

Lists all the available remotes from the config file

rclone listremotes

Lists directories in the remote aws_s3

rclone lsd aws_s3:

List the supported providers

rclone config providers

For my_remote, show the contents of migration/videos in tree format

rclone tree my_remote:migration/videos

patch

Updated: 24 October 2025

Apply a diff file to an original. Examples from here

Update file1.txt to make it identical to file2.txt

echo 'Hello, World!' > file1.txt
echo 'Hello, Linux!' > file2.txt
diff -u file1.txt file2.txt > file.diff
patch file1.txt < file.diff

tee

Updated: 04 October 2025

Read from standard input and write to standard output and files.

Find, from the root, all directories with ‘vim’ in their name. Send all non-error output simultaneously to std-out and a file

find / -type d -iname '*vim*' 2> /dev/null | tee find-results.txt

wget

Updated: 03 December 2025

Download a file

wget https://code.jquery.com/jquery-3.6.0.min.js

Download a file and rename

wget -O /put/here/new_name.js https://code.jquery.com/jquery-3.6.0.min.js

diff

Updated: 12 February 2026

Compare two files ignoring spaces and tabs (but not newlines, seemingly)

diff -w file1.csv file2.csv

Compare two directories

diff --brief --recursive ~/Desktop/bu ~/docs

Compare two directories but ignore differences in /.git

diff --brief --recursive ~/code/ai-client/ ~/code/ai-client/ | sed '/\/\.git/d'