Refactor: change "folder" to "directory" where needed.

This commit fixes every instance in which the word "folder" is
incorrectly used instead of "directory".
This commit is contained in:
Marco Bonelli
2019-02-11 19:00:49 +01:00
committed by Agniva De Sarker
parent 2484529a83
commit 2599a6de48
65 changed files with 202 additions and 202 deletions

View File

@@ -1,27 +1,27 @@
# cp
> Copy files and folders.
> Copy files and directories.
- Copy a file to another location:
`cp {{path/to/file.ext}} {{path/to/copy.ext}}`
- Copy a file into another folder, keeping the filename:
- Copy a file into another directory, keeping the filename:
`cp {{path/to/file.ext}} {{path/to/target_parent_folder}}`
`cp {{path/to/file.ext}} {{path/to/target_parent_directory}}`
- Copy a folder recursively to another location:
- Copy a directory recursively to another location:
`cp -r {{path/to/folder}} {{path/to/copy}}`
`cp -r {{path/to/directory}} {{path/to/copy}}`
- Copy a folder recursively, in verbose mode (shows files as they are copied):
- Copy a directory recursively, in verbose mode (shows files as they are copied):
`cp -vr {{path/to/folder}} {{path/to/copy}}`
`cp -vr {{path/to/directory}} {{path/to/copy}}`
- Copy the contents of a folder into another folder:
- Copy the contents of a directory into another directory:
`cp -r {{path/to/source_folder/*}} {{path/to/target_folder}}`
`cp -r {{path/to/source_directory/*}} {{path/to/target_directory}}`
- Copy text files to another location, in interactive mode (prompts user before overwriting):
`cp -i {{*.txt}} {{path/to/target_folder}}`
`cp -i {{*.txt}} {{path/to/target_directory}}`