1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-31 10:17:58 +01:00

Fix file format for cp command. ref: #402

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2015-12-29 10:11:10 +08:00
parent 3c6fb388f0
commit c431dffe85

View file

@ -8,14 +8,20 @@
- Copy a file to a parent directory
`cp {{/path/to/original}} ../{{/path/to/copy}}`
`cp {{/path/to/original}} ../{{path/to/copy}}`
- Copy directories recursive using the option -r. Optionally showing files as they are copied.
- Copy directories recursive using the option -r
`cp -r {{/path/to/original}} {{/path/to/copy}}`
- Show files as they are copied
`cp -vr {{/path/to/original}} {{/path/to/copy}}`
- Make a copy of a file adding and extension or changing an extension
- Make a copy of a file, adding an extension
`cp {{file.html}}\{,.backup\}`
`cp file.\{html,backup\}`
`cp {{file.html}}{,.backup}`
- Make a copy of a file, changing the extension
`cp {{file.}}{html,backup}`