cp [options] <source> <destination>
Display help.
Copy matching files in sub-directories. Creates any missing directories in the destination path.
Overwrite file at destination, if it exists.
Forcibly copy, even if the file is in use. Note, this option can't be used with --recurse.
The name of the source file (may contain wild characters) or directory. [filename]
The name of the destination file or directory. [filename]
Copy one or more files or folders.
If source is a directory and --recurse is used, destination is assumed to be a directory. If destination
exists, source
is copied into it, giving the directory structure destinationdir\sourcename\...
. This is in line with how posix cp behaves, but it is different to the default Symbian CFileMan behaviour, which would put the files in sourcedir directly into destinationdir without creating a directory called sourcename. In posix cp terms, CFileMan usually performs cp -r source\* destination\
instead of cp -r source destination
. If destination
does not exist, it is created, and posix cp and CFileMan behave the same in this case. It is considered preferable for fshell cp to behave the same as posix cp, rather than following CFileMan's behaviour.
Because of the above behavioural ambiguity (and other strangenesses in CFileMan) it is not recommended to copy a directory without specifying the --recurse option.
Note, also aliased to copy
.
Copyright (c) 2006-2010 Accenture. All rights reserved.