Automatically rename images from exif metadata

There is a tool for that called “jhead”, which is in the ubuntu repositories.

This command automatically renames all jpg files in the current folder and all subfolders:

find . -iname *.jpg -exec jhead -nf%Y-%m-%d_%H-%M-%S {} \;