0% found this document useful (0 votes)
12 views1 page

cp

Uploaded by

R. H.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views1 page

cp

Uploaded by

R. H.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

CP(1) User Commands CP(1)

NAME

cp - copy files and directories

SYNOPSIS

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


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

DESCRIPTION

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

Mandatory arguments to long options are mandatory for short


options too.

-f, --force
if an existing destination file cannot be opened, remove
it and try again (this option is ignored when the -n
option is also used)

-i, --interactive
prompt before overwrite (overrides a previous -n option)

-l, --link
hard link files instead of copying

-n, --no-clobber
do not overwrite an existing file (overrides a previous -i
option)

--parents
use full source file name under DIRECTORY

-R, -r, --recursive


copy directories recursively

-s, --symbolic-link
make symbolic links instead of copying

-u, --update
copy only when the SOURCE file is newer than the
destination file or when the destination file is missing

-v, --verbose
explain what is being done

--help display this help and exit

--version
output version information and exit

You might also like