Home » Linux Copy Multiple Files

Linux Copy Multiple Files

by Online Tutorials Library

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.

You may also like