Skip to Content
gnux

-r, --recursive

Copy directories recursively.

An option of cpx.

Usage

cpx -r SOURCE... DIRECTORY
cpx --recursive SOURCE... DIRECTORY

Details

ShortLongValueDefaultMeaning
-r--recursivenonecopy directories recursively

Examples

Update a mirror, copying only files that are newer

cpx -ru src/. mirror/
cpx -rL vendor/ vendor-flat/

Copy through a symlinked directory named on the command line only

cpx -rH latest snapshot

Copy a template's contents into an existing directory, not inside it

cpx -rT template/ newproject/

Add missing default files without overwriting customized ones

cpx -r --update=none defaults/. config/

Help in the terminal

gnux help cpx --recursive

On this page