Cp

From Psygen Wiki
Revision as of 19:23, 4 January 2018 by Admin (talk | contribs) (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 =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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/