Skip to Content
gnux

-n, --no-clobber

Do not overwrite an existing file.

An option of cpx.

Usage

cpx -n SOURCE... DIRECTORY
cpx --no-clobber SOURCE... DIRECTORY

Details

ShortLongValueDefaultMeaning
-n--no-clobbernonedo not overwrite an existing file

Examples

Copy into a directory named first, without overwriting anything

cpx -n -t ~/Documents report.pdf slides.pdf

Help in the terminal

gnux help cpx --no-clobber

On this page