LinuxQuestions.org
Help answer threads with 0 replies.
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 08-29-2001, 06:48 PM   #1
aklinuxuser
LQ Newbie
 
Registered: Aug 2001
Posts: 1

Rep: Reputation: 0
Easy Question on Copy Command


I have a question regarding the "cp" command on linux. Is there a way possible to copy one file and spread it among many directorys. For instance there is a program that I want to copy to many different users. All of their directorys are under one parent directory. I listed the command i use below with an exact statement of what i receive afterwards:

cp p1.test.c /usr/users/student/*

--> cp: omitting directory '/usr/users/student/2ndstudent'
--> cp: omitting directory '/usr/users/student/3rdstudent'

It will omit all the directorys listed under the parent directory except for the very first one. If someone knows a switch or option im missing please help. I appreciate any advice you can give about this
 
Old 08-29-2001, 06:55 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
this link might help in getting you the right direction http://www.linux.com/enhance/tuneup/...sh/000117.html
 
  


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
simple and easy ls command question basher400 Linux - Newbie 1 06-15-2005 09:26 AM
Symlinks and the copy command gbj Linux - General 5 10-31-2004 04:37 PM
Easy: Help with Cut command Krash_io Programming 4 07-17-2002 03:29 AM
Copy Command rlkiddjr Linux - General 2 05-07-2002 02:37 PM
Easy question on a command moose1618 Linux - General 5 03-24-2002 12:05 PM


All times are GMT -5. The time now is 08:58 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration