Files
tldr/common/cp.md
Peter Tripp a85601486c Added: Cal, srm, md5, md5sum, xed
Edited cp and rm. Fixed markdown escaping the wildcard.
2014-02-10 15:44:02 -08:00

22 lines
513 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. Optionally showing files as they are copied.
`cp -r {{/path/to/original}} {{/path/to/copy}}`
`cp -vr {{/path/to/original}} {{/path/to/copy}}`
- Make a copy of a file adding and extension or changing an extension
`cp {{file.html}}\{,.backup\}`
`cp file.\{html,backup\}`