-mv Command:
This command is used to move the contents from source to destination. This command is even used for renaming. When moving multiple files, the destination must be a Directory.The following is the syntax of move command.
- -mv <src> <dst>
Hadoop -mv command |
In the above figure, /user/root/emp1/part-m-00000 is the source file, where as /Mydir2 is the destination.
-cp Command:
This command is used to copy the file from source to destination. When copying multiple files, the destination must be a Directory. The following is the syntax of copy command.
- -cp <src> <dst>
Hadoop cp command |