“mv” command is used to moves a group of file to a another/different directory.
“mv” command can also use to rename file and directory. This command does not create a new copy of file , it only rename it. When we rename it does not consume any additional space on the disk.
$ mv file01 RenameFile [press enter]
Suppose we want to rename a file Mybook01 to MyNotes01 than command is as follows:
$ mv Mybook01 MyNotes01 [press enter]
Suppose we want to rename a directory dir01 to Mydir01 than command is as follows:
$ mv dir01 Mydir01 [press enter]
Move Number Of Files To a Directory
Suppose we want to move three files Mybook01 , MyBook02 & MyBook03 into a directory dir01 than command is as follows:
$ mv Mybook01 Mybook02 Mybook03 dir01 [press enter]
Above command moves three files Mybook01 , MyBook02 & MyBook03 into a directory dir01.