forked from extern/nushell
c0a1d18e3d
* feat: update #4455, regenerate commands' docs * chore: update make_docs script
30 lines
408 B
Markdown
30 lines
408 B
Markdown
---
|
|
title: cp
|
|
layout: command
|
|
version: 0.59.0
|
|
---
|
|
|
|
Copy files.
|
|
|
|
## Signature
|
|
|
|
```> cp (source) (destination) --recursive```
|
|
|
|
## Parameters
|
|
|
|
- `source`: the place to copy from
|
|
- `destination`: the place to copy to
|
|
- `--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
|
|
```
|