Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
cp(1)
Edit
PageHistory
Diff
Info
LikePages
CP !!!CP NAME SYNOPSIS DESCRIPTION AUTHOR REPORTING BUGS COPYRIGHT SEE ALSO ---- !!NAME cp - copy files and directories !!SYNOPSIS __cp__ [[''OPTION'']... ''SOURCE DEST''__ cp__ [[''OPTION'']... ''SOURCE''... ''DIRECTORY''__ cp__ [[''OPTION'']... ''--target-directory=DIRECTORY SOURCE''... !!DESCRIPTION Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY. __-a__, __--archive__ same as __-dpR__ __--backup__[[=''CONTROL''] make a backup of each existing destination file __-b__ like __--backup__ but does not accept an argument __-d__, __--no-dereference__ never follow symbolic links __-f__, __--force__ if an existing destination file cannot be opened, remove it and try again __-i__, __--interactive__ prompt before overwrite __-H__ follow command-line symbolic links __-l__, __--link__ link files instead of copying __-L__, __--dereference__ always follow symbolic links __-p__, __--preserve__ preserve file attributes if possible __--parents__ append source path to DIRECTORY __-P__ same as `--parents' for now; soon to change to `--no-dereference' to conform to POSIX __-r__ copy recursively, non-directories as files WARNING: use __-R__ instead when you might copy special files like FIFOs or /dev/zero __--remove-destination__ remove each existing destination file before attempting to open it (contrast with __--force__) __--sparse__=''WHEN'' control creation of sparse files __-R__, __--recursive__ copy directories recursively __--strip-trailing-slashes__ remove any trailing slashes from each SOURCE argument __-s__, __--symbolic-link__ make symbolic links instead of copying __-S__, __--suffix__=''SUFFIX'' override the usual backup suffix __--target-directory__=''DIRECTORY'' move all SOURCE arguments into DIRECTORY __-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 __-x__, __--one-file-system__ stay on this file system __--help__ display this help and exit __--version__ output version information and exit By default, sparse SOURCE files are detected by a crude heuristic and the corresponding DEST file is made sparse as well. That is the behavior selected by __--sparse__=''auto''. Specify __--sparse__=''always'' to create a sparse DEST file whenever the SOURCE file contains a long enough sequence of zero bytes. Use __--sparse__=''never'' to inhibit creation of sparse files. The backup suffix is `~', unless set with __--suffix__ or SIMPLE_BACKUP_SUFFIX. The version control method may be selected via the __--backup__ option or through the VERSION_CONTROL environment variable. Here are the values: none, off never make backups (even if __--backup__ is given) numbered, t make numbered backups existing, nil numbered if numbered backups exist, simple otherwise simple, never always make simple backups As a special case, cp makes a backup of SOURCE when the force and backup options are given and SOURCE and DEST are the same name for an existing, regular file. !!AUTHOR Written by Torbjorn Granlund, David !MacKenzie, and Jim Meyering. !!REPORTING BUGS Report bugs to !!COPYRIGHT Copyright 2001 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. !!SEE ALSO The full documentation for __cp__ is maintained as a Texinfo manual. If the __info__ and __cp__ programs are properly installed at your site, the command __info cp__ should give you access to the complete manual. ----
5 pages link to
cp(1)
:
mkswap(8)
Man1c
FileUtilities
TwoLetterCommands
SCP
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.