Reorganise cp.
This commit is contained in:
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}}`
|
Reference in New Issue
Block a user