diff --git a/pages/common/cp.md b/pages/common/cp.md index 9b4388ed9..3698f2355 100644 --- a/pages/common/cp.md +++ b/pages/common/cp.md @@ -19,6 +19,10 @@ `cp -vR {{path/to/source_directory}} {{path/to/target_directory}}` +- Copy multiple files at once to a directory: + +`cp -t {{path/to/destination_directory}} {{path/to/file1 path/to/file2 ...}}` + - Copy text files to another location, in interactive mode (prompts user before overwriting): `cp -i {{*.txt}} {{path/to/target_directory}}` diff --git a/pages/linux/cp.md b/pages/linux/cp.md index fe7f3ecd4..ccb722da7 100644 --- a/pages/linux/cp.md +++ b/pages/linux/cp.md @@ -19,6 +19,10 @@ `cp -vr {{path/to/source_directory}} {{path/to/target_directory}}` +- Copy multiple files at once to a directory: + +`cp -t {{path/to/destination_directory}} {{path/to/file1 path/to/file2 ...}}` + - Copy text files to another location, in interactive mode (prompts user before overwriting): `cp -i {{*.txt}} {{path/to/target_directory}}`