rename a folder and its contents in terminal code example Example: how to rename the directory in terminal mv [oldDirPath] [newDirPath]