fortune cookies

$ for i in {1..20}; do fortune -w ; sleep 3; clear; done

if you are a slow reader adjust the sleep time accordingly.

a bash timer

$ alias timer='export ts=$(date +%s);p='\''$(date -u -d @"$(($(date +%s)-$ts))" +"%H.%M.%S")'\'';watch -n 1 -t banner $p;eval "echo $p"'

chown me to who you are

use the other folder permission as reference. Here, changing the permission of all files in folder to the permission similar to the parent folder.

chown –reference=. ./*

looking for files modified some time back in a dir and its subdir

$ find . -type f -print0 | xargs -0 stat -c’%Y :%y %12s %n’ | sort -nr | cut -d: -f2- | head

Will go through all the files in the directory specified, uses `stat` to print out last modification time, then sorts numerically in reverse, then uses cut to remove the modified epoch timestamp and finally head to only output the last 10 modified files.