Cp

From Wsms

Jump to: navigation, search

Note: This page should be titled cp (all lowercase). It is Cp due to technical limitations of Mediawiki.

cp let's you copy files and directories.

common usage

Recursively copy the files and directories from souce to dest, preserving ownerships and permissions.

$ cp -rp source dest

If source and dest are on the same volume, you can create new hard links instead of new copies of the files:

$ cp -rpl source dest

see also

man cp
rsync

Personal tools