How To: Bulk Rename File Extensions With Terminal/Shell
Lets say you have a bunch of .jpg files that you know are actually .rar files.
What would be the simplest way to rename them all?
First you’d navigate to the directory that contains the .jpg files with the “cd” command
For brevity lets assume the only .jpg files in this directory are .jpg files that you want to change
All you have to do is run this command
mv *.jpg *.rar
And all the .jpg files will have been renamed to .rar
If you want to learn more about the “mv” command just type in