mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-06 14:26:02 +02:00
Reorganise cp.
This commit is contained in:
parent
e25ad10c36
commit
8af645808d
2 changed files with 19 additions and 11 deletions
19
common/cp.md
Normal file
19
common/cp.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# 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}}`
|
11
osx/cp.md
11
osx/cp.md
|
@ -1,11 +0,0 @@
|
|||
# cp
|
||||
|
||||
> Copies a file
|
||||
|
||||
- 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}}`
|
Loading…
Add table
Reference in a new issue