Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-15-2006, 10:01 AM   #1
LQ Newbie
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
problem in cp command

Things that can not be done using cp command

Multiple files can be copied to a single directory but

single file (or multiple file)cannot be copied to multiple directories in a single cp command.
Old 03-15-2006, 10:40 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Welcome to LQ. Your post is not really a question. If you want to post tips and tutorials there are dedicated sections on the site for that.
Old 03-15-2006, 11:12 AM   #3
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Use this command for copying single file to multiple directories,

cp filename.txt --target-directory\=directoryname --target-directory\=directoryname


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
route command problem Neorio Linux - Networking 1 10-15-2004 03:51 AM
command problem vickr1z Linux - Newbie 3 09-06-2004 12:43 PM
problem with tar command tiang_ono Linux - Newbie 3 06-17-2004 02:36 PM
I Have a problem with the CHOWN command AnnePeter Linux - Software 5 03-12-2004 07:37 AM
problem with ./configure command Linux - General 5 05-28-2001 01:25 PM

All times are GMT -5. The time now is 04:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration