cheat-fork-echo/cheat/cheatsheets/cp

15 lines
409 B
Plaintext

# cp - copy. Copies a file or directory
cp [-a, -f, -H, -i, -L, -n, -p, -P, -R, -X] [-v] [source] [target]
-a : Same as -pPR
-f : Force
-H : Follow sym links
-i : Prompt before overwrite
-L : If -R, follow sym links
-n : Do not overwrite
-P : If -R, Do not follow sym links (Default)
-p : Preserve meta data
-R : Recursive (cp directories)
-X : Do not copy extended attributes or resource forks
-v : Verbose