How to rename a file or folder (directory) in LinuxFollow @ggarron
Another small how-to today, let’s learn how to rename a file or folder (directory) in Linux.
The command you will need to rename is
It is used the same in files or folders:
mv actual-file-name new-file-name
This will change the name from “actual-file-name” to “new-file-name”
It is the same with folders.
mv actual-folder-name new-folder-name
You of course need to be the owner of have permissions over the files and/or folders you are trying to rename.