linux terminal rename file code example
Example 1: linux change file name
mv oldfile.txt newfile.txt
Example 2: bash rename file
mv oldname newname
Example 3: how to rename a file in terminal
mv "old location" "new location"
mv /home/user/my_static /home/user/static
mv "file1.ext" "file2.ext"
Example 4: rename file linux
mv (option) filename1.ext filename2.ext
Example 5: rename set of files terminal linux
$ mmv a\* b\#1
Example 6: bash rename multiple files
rename search_string replacement_string files
badly_name_file_1.txt
badly_named_file_1.txt
badly_named_file_2.txt
badly_named_file_3.png
rename txt png *txt
badly_name_file_1.png
badly_named_file_1.png
badly_named_file_2.png
badly_named_file_3.png
rename named speled badly*
badly_name_file_1.txt
badly_speled_file_1.txt
badly_speled_file_2.txt
badly_speled_file_3.png