To get your photos organized by folder like:
it’s useful to use exiftool (http://www.sno.phy.queensu.ca/~phil/exiftool).
First, install it:
$ sudo apt-get install libimage-exiftool-perl
Then, use it:
$ cd /path/to/unorganized/photos/
$ exiftool “-Directory<DateTimeOriginal” -d “%Y_%m_%d” ./
Source: http://www.sno.phy.queensu.ca/~phil/exiftool/#filename