
Install rename on Ubuntu / Debian :~$ sudo apt install rename Run the following command in the terminal to install the tool: Most Linux distributions do not come with a rename tool. Rename multiple files using the “rename” toolįirst, we need to install the rename tool. You can use the rename tool and the for loop to rename multiple files on Linux terminal. Note: Actually the mv command is used to move a file. :~$ mv /path/to/file/oldFileName.php /path/to/file/newFileName.php You can change the name of the file located in a different folder in the current folder. To rename a file in the Linux terminal, enter the following command at the command line. Rename a file in Linux terminal using “mv” command


Rename multiple files using the “rename” tool.Rename a file in Linux terminal using “mv” command.
