LinuxQuestions.org
Review your favorite Linux distribution.
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, 11: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, 11:40 AM   #2
reddazz
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, 12:12 PM   #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


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 04:51 AM
command problem vickr1z Linux - Newbie 3 09-06-2004 01:43 PM
problem with tar command tiang_ono Linux - Newbie 3 06-17-2004 03:36 PM
I Have a problem with the CHOWN command AnnePeter Linux - Software 5 03-12-2004 08:37 AM
problem with ./configure command rdaves@earthlink.net Linux - General 5 05-28-2001 02:25 PM


All times are GMT -5. The time now is 06:42 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration