|
@@ -10,7 +10,7 @@
|
|
|
|
|
|
`cp {{path/to/file.ext}} {{path/to/target_parent_directory}}`
|
|
`cp {{path/to/file.ext}} {{path/to/target_parent_directory}}`
|
|
|
|
|
|
-- Copy a directory recursively to another location:
|
|
|
|
|
|
+- Recursively copy a directory's contents to another location (if the destination exists, the directory is copied inside it):
|
|
|
|
|
|
`cp -r {{path/to/directory}} {{path/to/copy}}`
|
|
`cp -r {{path/to/directory}} {{path/to/copy}}`
|
|
|
|
|
|
@@ -18,10 +18,6 @@
|
|
|
|
|
|
`cp -vr {{path/to/directory}} {{path/to/copy}}`
|
|
`cp -vr {{path/to/directory}} {{path/to/copy}}`
|
|
|
|
|
|
-- Copy the contents of a directory into another directory:
|
|
|
|
-
|
|
|
|
-`cp -r {{path/to/source_directory/*}} {{path/to/target_directory}}`
|
|
|
|
-
|
|
|
|
- Copy text files to another location, in interactive mode (prompts user before overwriting):
|
|
- Copy text files to another location, in interactive mode (prompts user before overwriting):
|
|
|
|
|
|
`cp -i {{*.txt}} {{path/to/target_directory}}`
|
|
`cp -i {{*.txt}} {{path/to/target_directory}}`
|