How to copy multiple files at once
$ cp [file1] [file2]... [dest_dir]
- Command
- cp
- Description
- Copy multiple files into a destination directory. The last argument must be the directory. Usage: cp file1 file2 dir/.
- Deep Dive
- The destination must be a directory. You can also use wildcards like `cp *.txt dir/`.
- Related
- How to copy a directory