Copies files and directories
Syntax
- cp [option]... [source] [destination]
The cp command copies source to destination or multiple sources to directory.
Options
- -a: The same as -dpR.
- -d, -P: Preserves links
- -H, -L: Dereferences all symlinks (implied by default).
- -p: Preserves file attributes if possible.
- -f: Force (implied; ingored) — always set
- -i: Interactive, prompts before overwriting.
- -R, -r: Copies directories recursively.
See also Acronis Linux Commands.