PCP(1P)
NAME
pcp − copy files
SYNOPSIS
pcp [−i] file1 file2
pcp [−i] file ... dirname
DESCRIPTION
Pcp copies file1 onto file2. The mode and owner of file2 are preserved if it already exists, otherwise the mode of the source file is used.
In the second form, one or more files are copied into dirname with their original file names.
File and dirname may be either regular or project pathnames. However, because pcp interprets both file and dirname arguments as project pathnames, if file matchs the name of a project directory within the same project, then pcp will print the error message ‘pcp: can’t copy project directory file’, unless file is disguised as ./file.
Pcp blindly overwrites existing files unless the −i option is specified.
Pcp refuses to copy a file onto itself.
OPTIONS
−iInteractive mode. Pcp will prompt the user with the name of the file whenever the copy will cause an old file to be overwritten. An answer of ‘y’ will cause pcp to continue. Any other answer will prevent it from overwriting the file
SEE ALSO
DIAGNOSTICS
Exit status 0 is normal. Exit status 1 indicates an error.
AUTHOR
Peter J. Nicklin