Feb 18, 2010

Copy files with cp (fancy way)

Copy files from dir A to dir B. 
(cause i always forget which are the proper flags...) 
cp -Rpnv "Dir_A" "Dir_b"
  • n : Do not overwrite an existing file (overides -f flag).
  • p : Preserves attributes for each source file.
  • R : Files are copied recursively.
  • v : Show files while copying them.

No comments: