Review your favorite Linux distribution.
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 08-29-2001, 05:48 PM   #1
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, 05:55 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
this link might help in getting you the right direction


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 08:26 AM
Symlinks and the copy command gbj Linux - General 5 10-31-2004 03:37 PM
Easy: Help with Cut command Krash_io Programming 4 07-17-2002 02:29 AM
Copy Command rlkiddjr Linux - General 2 05-07-2002 01:37 PM
Easy question on a command moose1618 Linux - General 5 03-24-2002 11:05 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:18 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