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

307.1K
24

Find all the IP ranges on an ASN

231.1K
0

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

205K
2

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Best #Linux Authors
cheglastgnat
307.1K
#linux
#Python
#shell
barnettjw
263.2K
#linux
#css
#powershell
mehikmat
207.1K
#linux
#Shell
#java
sdepablos
203K
#linux
#MySQL
#Symfony2
projectcleverweb
178.6K
#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 2026

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