> For the complete documentation index, see [llms.txt](https://til.yulrizka.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.yulrizka.com/k8s/copy-file-to-pod.md).

# copy file to pod

Copy File from local to remote

```
kubectl cp ./local-file pod-name:remote-file
```

Copy file between pod

```
kubectl cp pod1:file-name pod2:file-name
```
