-p, --preserve-default
Same as --preserve=mode,ownership,timestamps.
An option of cpx.
Usage
cpx -p SOURCE... DIRECTORY
cpx --preserve-default SOURCE... DIRECTORYDetails
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-p | --preserve-default | none | same as --preserve=mode,ownership,timestamps |
Examples
Keep the mode and timestamps of a script while copying it
cpx -p deploy.sh bin/Help in the terminal
gnux help cpx --preserve-default