how to rename a folder in windows from terminal code example Example: how to rename the directory in terminal mv [oldDirPath] [newDirPath]