# cp

* [cp](https://manpages.debian.org/bookworm/manpages-es/cp.1.es.html) - Copia ficheros y directorios

```bash
$ cp document.txt directorio/
```

Este comando nos permite copiar los ficheros o directorios de forma rápida y sencilla. Por ejemplo si queremos copiar un directorio con todo su contenido ejecutamos `cp -r directorio-origen directorio-destino/`. Con este comando también podemos cambiar el nombre al momento de hacer la copia; es muy útil si queremos hacer muchos cambios y necesitemos hacer una copia de seguridad.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yejokjanan.gitbook.io/aprendiendo-gnulinux/comandos-basicos/ficheros-y-directorios/cp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
