Ubuntu Bulk File Rename

Renaming a file in Ubuntu I will use “mv”. When it comes to renaming multiple files and say append prefix to all the files, “mv” isn’t the right program for the job. I could write a bash script to loop each and every file, rename the files one by one through the loop. Or I could install a program called “rename”.

sudo apt install rename

Lets say I have these files in my folder


To append the letter “A” as prefix.

rename 's/^/A/' *JPG
# AIMG_0001.JPG…