8 Create a QR code image in MECARD format

Add the QR code image on your webpage, business card ., etc, so people can scan it and quick add to their Contact Address Book. Tested on iPhone with QRreader.

9 Chmod all directories (excluding files)

find public_html/ -type d -exec chmod 755 {} +

+ at the end means that many filenames will be passed to every chmod call, thus making it faster. And find own {} makes sure that it will work with spaces and other characters in filenames.

10 List only the directories

find . -maxdepth 1 -type d | sort

11 copy with progress bar – rsync

rsync -rv --progress

-r for recursive (if you want to copy entire directories)
src for the source file (or wildcards)
dst for the destination
–progress to show a progress bar

12 Find all files of a type and copy them elsewhere while keeping intact their full directory structure using find and cpio

find . -iname "*.flac" | cpio -pdm /Volumes/Music/FLAC

.flac is the filetype.
/Volumes/Music/FLAC is the destination.

13 Share a screen session

screen -x

14 Backup entire system through SSH

ssh -C USER@HOST tar -c --exclude /proc --exclude /sys / | tar -x

15 Find the package a command belongs to on debian-based distros

apt-file search iostat

16 View files opened by a program on startup and shutdown

sudo lsof -rc command >> /tmp/command.txt

Run this before you run a command in order to see what the command does as it starts.
The -c flag is useful here as the PID is unknown before startup.
All config files, libraries, logs, ports, etc used by the command as it starts up, (and shuts down) will be captured at 1s intervals and written to a file.
Useful for debugging etc.