Coderwall
Ruby Python JavaScript Front-End Tools iOS
More Tips
Ruby Python JavaScript Front-End Tools iOS PHP Android .NET Java Jobs
Jobs
Sign In or Up
Last Updated: February 25, 2016
·
522
· jacobbednarz

Copy a file to multiple directories in linux

#linux
#xargs
#cp
#copy file to multiple directories
echo dir1 dir2 dir3 | xargs -n 1 cp source_file
#linux
#xargs
#cp
#copy file to multiple directories

Written by Jacob Bednarz

Say Thanks
Respond

Related protips

Remote Access to IPython Notebooks via SSH

303.7K
24

Find all the IP ranges on an ASN

229.1K
0

$#, $@ & $?: Bash Built-in variables

202K
2

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Best #Linux Authors
cheglastgnat
302.8K
#linux
#Python
#shell
barnettjw
258.3K
#linux
#css
#powershell
mehikmat
202.5K
#linux
#Shell
#java
sdepablos
198.5K
#linux
#MySQL
#Symfony2
projectcleverweb
166.8K
#linux
#javascript
#css
Related Tags
#linux
#xargs
#cp
#copy file to multiple directories
Sponsored by
#native_company#
#native_desc#
#native_cta#
Filed Under

Tools
Awesome Job
See All Jobs

Post a job for only $299
Thanks to our sponsor
Sponsored by #native_company# — Learn More
#native_title# #native_desc#
#native_cta#
@coderwall
APM product comparisons Contact Privacy Terms

Copyright 2025

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.