# cp command

### The Linux `cp` command <a href="#the-linux-cp-command" id="the-linux-cp-command"></a>

You can copy a file using the `cp` command:

```bash
touch test
cp apple another_apple
```

To copy folders you need to add the `-r` option to recursively copy the whole folder contents:

```bash
mkdir fruits
cp -r fruits cars
```
