Bladeren bron

cp: add -t example (#9866)

* cp: add -t example

---------

Co-authored-by: Jack Lin <blueskyson1401@gmail.com>
Adeepa Gunathilake 1 jaar geleden
bovenliggende
commit
549933634c
2 gewijzigde bestanden met toevoegingen van 8 en 0 verwijderingen
  1. 4 0
      pages/common/cp.md
  2. 4 0
      pages/linux/cp.md

+ 4 - 0
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}}`

+ 4 - 0
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}}`