Commands.app

cp

File Management

Copy files and directories

Options & Flags
Available options for this command
-r

Copy directories recursively

-i

Prompt before overwrite

-v

Verbose output

-p

Preserve file attributes

Examples
Common usage examples

Copy a file

cp file.txt backup.txt

Copy directory recursively

cp -r source/ destination/

Copy file preserving attributes

cp -p file.txt /backup/
Related Commands
You might also find these useful