Option Flags
- f (force) – specifies removal of the target file if it cannot be opened for write operations. The removal precedes any copying performed by the cp command.
- L (dereference) – makes the cp command follow symbolic links (symlinks) so that the destination has the target file rather than a symlink to the target.
- i (interactive) – prompts you with the name of a file to be overwritten. This occurs if the TargetDirectory or TargetFile parameter contains a file with the same name as a file specified in the SourceFile or SourceDirectory parameter. If you enter y or the locale's equivalent of y, the cp command continues. Any other answer prevents the cp command from overwriting the file.
- p (preserve) – the p flag preserves the following characteristics of each source path in the corresponding target: The time of the last data modification and the time of the last access, the ownership (only if it has permissions to do this), and the file permission bits.
- R or r (recursive) – copy directories recursively
Read more about this topic: Cp (Unix)
Famous quotes containing the words option and/or flags:
“You dont merely give over your creativity to making a filmyou give over your life! In theatre, by contrast, you live these two rather strange lives simultaneously; you have no option but to confront the mould on last nights washing-up.”
—Daniel Day Lewis (b. 1957)
“The flags are natures newly found.
Rifles grow sharper on the sight.
There is a rumble of autumnal marching,
From which no soft sleeve relieves us.
Fate is the present desperado.”
—Wallace Stevens (18791955)