cp - copy files and/or directories
cp [ -fiv ] source_file target_file
cp [ -fiv ] source... target_dir
The cp utility copies the source files/directories to the target. If the target is a file you may only specify one file as the source. cp will not copy a file onto itself.
-f Force copy if possible (DEFAULT)
-i Prompt for confirmation whenever the copy would overwrite an existing target.
-p Preserve source file attributes (like modDate) as much as possible onto the target.
-v Verbose. Echo "cp source target" before copy is done.
Specifying both -f and -i options is not considered an error. The -f option will override the -i option.
cp has no known bugs, but be aware that the current copy mode is binary mode.
0 = All sources were copied successfully.
This Perl implementation of cp was written by Ken Schumack schumacks@att.net
This program is copyright by Ken Schumack 1999.
This program is free and open software. You may use, modify, distribute and sell this program (and any modified variants) in any way you wish, provided you do not restrict others from doing the same.
To install PerlPowerTools, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PerlPowerTools
CPAN shell
perl -MCPAN -e shell install PerlPowerTools
For more information on module installation, please visit the detailed CPAN module installation guide.