Cp (Unix) - Option Flags

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 don’t merely give over your creativity to making a film—you 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 night’s washing-up.
    Daniel Day Lewis (b. 1957)

    No doubt I shall go on writing, stumbling across tundras of unmeaning, planting words like bloody flags in my wake. Loose ends, things unrelated, shifts, nightmare journeys, cities arrived at and left, meetings, desertions, betrayals, all manner of unions, adulteries, triumphs, defeats ... these are the facts.
    Alexander Trocchi (1925–1983)