cp (1)


NAME
SYNOPSIS
DESCRIPTION
OPTIONS
OPERANDS
COPYRIGHT
Source Code

NAME

cp - copy files

SYNOPSIS

cp

[-Pfip] source_file target_file

cp

[-Pfip] source_file... target

cp

-R [-H|-L|-P] [-fip] source_file... target

DESCRIPTION

The cp utility is used to copy files and directory structures.

OPTIONS

-f

If a file descriptor for a destination file cannot be obtained, attempt to unlink the destination file and proceed.

-i

Write a prompt to standard error before copying to any existing non-directory destination file. If the response from the standard input is affirmative, the copy will be attempted; otherwise it won’t.

-R

Copy directory structures.

-H

Take actions based on the type and contents of the file referenced by any symbolic link specified as a source_file operand.

-L

Take actions based on the type and contents of the file referenced by any symbolic link specified as a source_file operand or any symbolic link encountered during traversal of a directory structure.

-P

Take actions on any symbolic link specified as a source_file operand or any symbolic link encountered during traversal of a directory structure.

-p

(Currently unimplemented)

If none of the -H, -L, -P is specified, the cp utility behaves as if -H was specified.

OPERANDS

The following operands are supported:

source_file

A pathname of a file to be copied.

target_file

A pathname of an existing or non-existing file, used for the output when a single file is copied.

target

A pathname of a directory to contain the copied files.

COPYRIGHT

Copyright © 2021 Benjamin Stürz
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.


Generated using groff on 2022-07-19 01:11:30 (UTC)

Look at my source code on GitHub Memes
This website is licensed under the terms of the AGPLv3.
Tor link: 3gto4zix3cpwhq32sh5ygsr3brlmgy4pdf26md46e4zpzfzmbftw3cyd.onion