cp and mv command options
Article Directory
learning target
- Options can say the command to copy the folder used
1. cp command options
Command Options | Explanation |
---|---|
-i | Interactive prompts |
-r | Recursively copy directory and its contents |
-v | After displaying copy path described |
-a | Original rights reserved file |
cp -i command options renderings:
cp -r command options renderings:
cp -v command options renderings:
cp -a command options renderings:
-a option Description:
- -a option also supports copy folder and file permissions folder is not lost
2. mv command options
Command Options | Explanation |
---|---|
-i | Interactive prompts |
-v | Displayed after the movement path described |
mv -i command options renderings:
mv -v command options renderings:
3. Summary
- Copy protected file is used covered "cp -i" operation
- Copy folders using "cp -r" operation, copy the folder and file permissions are not lost use "cp -a" operation.
- Use cover to prevent movement of the file "mv -i" operation
- Move Folder direct use "mv" can, "mv" also to rename files and folders.