![]() You can use the following command to convert lowercase filenames to uppercase. :~$ rename 's/\.html$/\.php/' *.html lowercase to UPPERCASE If you want to rename txt files to HTML, you can use the command below. Install rename on Arch Linux :~$ yay perl-rename # or yaourt -S perl-rename Basic usage ![]() Install rename on CentOS / Fedora / AlmaLinux / Rocky Linux :~$ sudo yum install prename 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |