![]() mv /full-path/old-folder-name /full-path/new-folder-name Renaming a file via command lineġ. If the file or folder you wish to rename is not in the current working directory then you need to provide the full file name. If the file or folder you want to rename is in the current working directory(to check your current working directory just type pwd on terminal and hit return): mv old-folder-name new-folder-name ![]() Let’s get familiar with the syntax of mv command first: The mv command not only renames your file/folder, it can change the location of your renamed file if you wish to do so. In this guide, we will discuss it in detail. In my previous guide, I have shared four methods of renaming a file or a folder, in that guide I have discussed a little bit about renaming via command line.
0 Comments
Leave a Reply. |