Menu

How to move or rename a directory in linux?

If you are moving or renaming a directory within the same directory then use the below command

mv <directory-name> <new-directoy-name>

e.g. mv new-folder new-2016


PS: If you want to move to a different directory then pass the complete path instead of just passing the folder/directory name