When you wish to change multiple files’ names you can use the Linux rename command. It is very handy when it comes to the bulk file renaming. In this article, we will cover the basic usage of the Linux rename command.
Linux rename to change extensions
This will change all .txt files to have .pdf extension
rename 's/\.txt$/.pdf/' *
Showing output with rename
If you wish to see what’s being done you can apply the -v option
rename -v