Question: How Do You Copy Multiple Files in Unix?
Contents

How do I copy multiple files at a time in Unix?

To copy multiple files using the cp command pass the names of files followed by the destination directory to the cp command.

How do I copy multiple files in Linux?

The short answer is no. You can not use GNU/cp or BSD/cp to copy a single file to multiple directories. However, you can use combination of cp and xargs/parallel and other commands to copy a single file to multiple directories in MacOS, Linux, FreeBSD, OpenBSD, NetBSD and Unix-like systems.

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest