1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-04 15:35:34 +02:00
tldr/common/cp.md
2014-01-30 15:11:56 +01:00

19 lines
440 B
Markdown

# cp
> Copy files
- Copy files in arbitrary locations
`cp {{/path/to/original}} {{/path/to/copy}}`
- Copy a file to a parent directory
`cp {{/path/to/original}} ../{{/path/to/copy}}`
- Copy directories recursive using the option -r.
`cp -r {{/path/to/original}} {{/path/to/copy}}`
- Copy files in verbose mode, showing files as they are copied. (Mostly interesting with -r option).
`cp -vr {{/path/to/original}} {{/path/to/copy}}`