Skip to Content
gnux

-t, --target-directory

Copy all SOURCE arguments into DIRECTORY.

An option of cpx.

Usage

cpx -t string SOURCE... DIRECTORY
cpx --target-directory=string SOURCE... DIRECTORY

Details

ShortLongValueDefaultMeaning
-t--target-directorystringcopy all SOURCE arguments into DIRECTORY

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 --target-directory

On this page