Revision [603]

This is an old revision of CommandCp made by DavidLee on 2009-05-31 13:47:33.

 

Command cp


This command is part of the posix extensions and needs to be imported to be available to the shell.
See Posix Commands

Name

cp copies files


Synopsis

cp [options] file [file ...] target

Options

-f
-force Force copy even if target exists or is readonly.


Description


If there are 2 or more source files or the target is a directory then files are copied to the target directory.
If there are exactly 2 arguments and the target does not exist or is not a directory then the source ("file") is copied to the target file.

Return Value

Returns 0 if the command executed successfully, 1 if there was an error.

CategoryCommands
CommandsPosix
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki