1 | # cp
|
2 |
|
3 | > Copy files
|
4 |
|
5 | - Copy files in arbitrary locations
|
6 |
|
7 | `cp {{/path/to/original}} {{/path/to/copy}}`
|
8 |
|
9 | - Copy a file to a parent directory
|
10 |
|
11 | `cp {{/path/to/original}} ../{{/path/to/copy}}`
|
12 |
|
13 | - Copy directories recursive using the option -r.
|
14 |
|
15 | `cp -r {{/path/to/original}} {{/path/to/copy}}`
|
16 |
|
17 | - Copy files in verbose mode, showing files as they are copied. (Mostly interesting with -r option).
|
18 |
|
19 | `cp -vr {{/path/to/original}} {{/path/to/copy}}`
|