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
·
557
· 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

306.4K
24

Find all the IP ranges on an ASN

230.9K
0

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

204.4K
2

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Best #Linux Authors
cheglastgnat
306.5K
#linux
#Python
#shell
barnettjw
261.8K
#linux
#css
#powershell
mehikmat
206.5K
#linux
#Shell
#java
sdepablos
202.4K
#linux
#MySQL
#Symfony2
projectcleverweb
176.1K
#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.