cp

version: 0.0.9
cp [OPTIONS] [--] [paths]...

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

Options

--help, -h

Print help information

--version, -V

Print version information

--target-directory=<target-directory>, -t <target-directory>

copy all SOURCE arguments into target-directory

--no-target-directory, -T

Treat DEST as a regular file and not a directory

--interactive, -i

ask before overwriting files

--link, -l

hard-link files instead of copying

--no-clobber, -n

don't overwrite a file that already exists

--recursive, -r

copy directories recursively

-R

same as -r

--strip-trailing-slashes

remove any trailing slashes from each SOURCE argument

--verbose, -v

explicitly state what is being done

--symbolic-link, -s

make symbolic links instead of copying

--force, -f

if an existing destination file cannot be opened, remove it and try again (this option is ignored when the -n option is also used). Currently not implemented for Windows.

--remove-destination

remove each existing destination file before attempting to open it (contrast with --force). On Windows, current only works for writeable files.

--backup=<CONTROL>

make a backup of each existing destination file

-b

like --backup but does not accept an argument

--suffix=<SUFFIX>, -S <SUFFIX>

override the usual backup suffix

--update, -u

copy only when the SOURCE file is newer than the destination file or when the destination file is missing

--reflink=<WHEN>

control clone/CoW copies. See below

--attributes-only

Don't copy the file data, just the attributes

--preserve=<ATTR_LIST>

Preserve the specified attributes (default: mode, ownership (unix only), timestamps), if possible additional attributes: context, links, xattr, all

--preserve-default-attributes, -p

same as --preserve=mode,ownership(unix only),timestamps

--no-preserve=<ATTR_LIST>

don't preserve the specified attributes

--parents

use full source file name under DIRECTORY

--no-dereference, -P

never follow symbolic links in SOURCE

--dereference, -L

always follow symbolic links in SOURCE

--archive, -a

Same as -dR --preserve=all

-d

same as --no-dereference --preserve=links

--one-file-system, -x

stay on this file system

--copy-contents

NotImplemented: copy contents of special files when recursive

--sparse=<WHEN>

NotImplemented: control creation of sparse files. See below

--context=<CTX>

NotImplemented: set SELinux security context of destination file to default type

-H

NotImplemented: follow command-line symbolic links in SOURCE