mirror of
https://github.com/nushell/nushell
synced 2024-12-29 06:23:11 +00:00
28 lines
393 B
Markdown
28 lines
393 B
Markdown
|
# cp
|
||
|
Copy files.
|
||
|
|
||
|
## Usage
|
||
|
```shell
|
||
|
> cp <src> <dst> {flags}
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
* `<src>` the place to copy from
|
||
|
* `<dst>` the place to copy to
|
||
|
|
||
|
## Flags
|
||
|
* -h, --help: Display this help message
|
||
|
* -r, --recursive: copy recursively through subdirectories
|
||
|
|
||
|
## Examples
|
||
|
Copy myfile to dir_b
|
||
|
```shell
|
||
|
> cp myfile dir_b
|
||
|
```
|
||
|
|
||
|
Recursively copy dir_a to dir_b
|
||
|
```shell
|
||
|
> cp -r dir_a dir_b
|
||
|
```
|
||
|
|