Copy, move files and directories command
Article Directory
learning target
- Linux commands can be used to copy and move files
1. The use of copy, move files and directories command
command | Explanation |
---|---|
cp | Copy files, copy directory |
mv | Move files, mobile directory, rename |
cp command renderings:
Description:
- Copy of the catalog need to add -r option, -r recursively copy directory and its contents represent
mv commands file renderings
mv commands directory renderings
mv command is the name of the same name renderings
2. Summary
- cp: copy directories need to add the -r option
- mv: moving directories do not need to add options
- mv: command can also rename files and directories