shellspells beta

cp

cp [OPTION]... [-T] SOURCE DEST
cp [OPTION]... SOURCE... DIRECTORY
cp [OPTION]... -t DIRECTORY SOURCE...

cp Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.

Copy files or entire directory structures.

Examples

Copy a file

cp ripley.txt hicks.txt

Copy a file to a different directory

cp ripley.txt /tmp/hicks.txt

Preserve mode, ownership, timestamps

cp -p ripley.txt hicks.txt

Copy an entrire directory structure

cp -rp alien /tmp/nostramo