|
NAMEcopy - (XENIX) copy groups of filesSYNOPSIScopy [-a[d]] [-nlsmorvh] source . . . [destination]DESCRIPTIONThe copy command creates a copy of each source file in destination. If no destination argument is present, the current directory is used. If more than one source argument is given, destination must be an existing directory; otherwise, if destination does not exist, it is created. For a directory given as source, its contents are copied to destination, but subdirectories are normally ignored (see the -r option below). Special files are copied as such.If a destination file exists, its content will be overwritten, but it will retain its permissions and ownership. Otherwise, files are created with the owner and group set to those of the invoking user and with the permissions of the source file (minus umask, see umask(2)). The copy command accepts the following options, which may be given at any position regarding the file operands:
SEE ALSOcp(1), cpio(1)NOTESFiles copied will lose all hard link connection.In contrast to cp(1), if a directory is copied to an existing destination directory, its contents will be written directly into that directory, without a subdirectory being created. For example, if the directory source contains the files file1 and file2, the command copy source dest cp -r source dest
Visit the GSP FreeBSD Man Page Interface. |