Javatpoint Logo
Javatpoint Logo

Linux Copy multiple files or directories

Multiple files or directories can be copied to a destination directory at once. In this case, target must be a directory. To copy multiple files you can use wildcards (cp *.extension) having same pattern.

Syntax:

Example:

Linux copy multiple files

In above example, we have copied files (file1, file2, file3) having same extension '.txt' to Documents directory.





Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA