NAME

cp - copy files and/or directories

SYNOPSIS

% cp [ B<-fipv> ] source_file  target_file

% cp [ B<-fipv> ] source...  target_dir

DESCRIPTION

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.

OPTIONS

  • -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.

BUGS

cp has no known bugs, but be aware that the current copy mode is binary mode.

EXIT STATUS

  • 0 - All sources were copied successfully.

  • 1 - There was error

AUTHOR

brian d foy, <schumacks@att.net>

COPYRIGHT and LICENSE

Copyright © 2023 brian d foy. All rights reserved.

You may use this program under the terms of the Artistic License 2.0.