This is a very small script but it makes it a lot easier to find that file you were just working on but you can’t remember where you saved it to or what it was named (It really has happened to me a few times!)
#!/bin/bash if [ $# -ne 1 ]; then echo "usage: $0 <int>" echo "where int = minutes" exit 1 fi num="$1" find . \( -path proc -o -path sys -o -path .cache \) -prune -o -mmin -$num -type f -print
As you can see it is very small and is really just to make it easier to find recently changed files, it can also be used when trying to find out what file(s) gets changed when adjusting the display settings (or anything really) using a GUI.
It’s not bullet proof but has helped me on many occasions.