LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-15-2006, 10:01 AM   #1
ksriram03
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
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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
prasanta
Member
 
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
 
  


Reply



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 rdaves@earthlink.net Linux - General 5 05-28-2001 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:56 PM.

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