how to rename directory in bash code example

Example 1: 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 2: rename folder bash

mv /home/user/oldname /home/user/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: how to rename the directory in terminal

mv [oldDirPath] [newDirPath]

Example 5: how to rename working directory in linux

$ mv <source_directory> <target_directory>