Many times you need to rename the file and directory name. Here I am explaining some commands which used to change the name of files and directory. So let us see them,
Renaming files with mv Command:
The mv command is used to rename or move files from one location to another.
Syntax to use mv:
If you have a file name aml.txt and you want to change its name with aticleworld.txt. So you need
Note: Using the mv command you can change the single file name at a time.
Renaming files with rename Command:
rename command is not part of a standard Linux distribution, so you will need to install it. In Ubuntu and Debian-derived distributions you install rename like this:
Syntax to use rename: