rename file bash code example
Example 1: how to rename a file in ubuntu using terminal
mv oldnamefile1 newnamefile1
Example 2: bash rename
# Linux - Bash
# syntax:
mv <source-filename> <destination-filename>
# example-1 (fundamental - no switches):
mv "Initial_File_Name.txt" "New_File_Name.txt"
Example 3: linux change file name
mv oldfile.txt newfile.txt
Example 4: bash rename file
mv oldname newname
Example 5: rename command ubuntu
cd /home/user/docs/files
mv file1.txt file2.txt
Example 6: unix rename file
mv thirdfile file3