Cp: Difference between revisions

From Psygen Wiki
Jump to navigation Jump to search
(Created page with "cp copies files and/or directories == Command Flags == <code>-a</code> - "archive", Preserves attributes <code>-r</code> - "Recursive", copies sub-directories and files =...")
 
(No difference)

Latest revision as of 19:23, 4 January 2018

cp copies files and/or directories

Command Flags

-a - "archive", Preserves attributes

-r - "Recursive", copies sub-directories and files


Examples

Copy an entire directory and it's contents into another folder:
cp -ar /backup/2018-01-03/ /backup/annual/

Copy just the contents of a folder into another folder:
cp -a /source/. /dest/