Jhead Batch Photo Renaming
Jhead is a CLI utility to rename large collections of photos with EXIF (Exchangeable image file format) metadata like date and time which saves you the effort to renaming them one by one.
To install Jhead:
sudo aptitude install jhead
To rename the photos to “year-month-date_hour-min-sec” format:
1. Go to the photo folder
chenhow@laptop:~$ cd Desktop/BBs/
2. Run Jhead utility with below parameter
chenhow@laptop:~/Desktop/BBs$ jhead -n%Y-%m-%d_%H-%M-%S *.jpg
3. Then your photos will be renaming and the format will look like this
Before rename
chenhow@chenhow-laptop:~/Desktop/BBs$ ls
Photo0594.jpg Photo0598.jpg Photo0600.jpg
After rename
chenhow@chenhow-laptop:~/Desktop/BBs$ jhead -n%Y-%m-%d_%H-%M-%S *.jpg
Photo0594.jpg –> 2009-10-04_05-57-56.jpg
Photo0598.jpg –> 2009-10-04_06-05-13.jpg
Photo0600.jpg –> 2009-10-04_06-11-16.jpg
For help, type jhead -h or visit http://www.sentex.net/~mwandel/jhead/.









