Copying subdirectories into another directory
Terry D. Cudney
terry at CottageInWasaga.com
Sat Dec 7 20:42:41 EST 2002
# cd /linux-2.4.20
# cp -a * <path-to>/linux-2.4.20-sp
Hope that's what you want!
On Sat, Dec 07, 2002 at 07:24:20PM -0600, Cheryl Homiak wrote:
> I can't seem to find the right way to do this.
> I have compiled linux-2.4.20 and now want to copy the completed source tree to a
> directory linux-2.4.20-sp. I don't want to just move it, because I still also
> want the copy that is linux-2.4.20. If I use "cp" with -a -r or -R, the
> subdirectories are copied but so is the top directory. So I end up with
> linux-2.4.20-sp but with linux-2.4.20 beneath it; I want everything under the
> linux-2.4.20 copied recursively to linux-2.4.20-sp; but without linux-2.4.20 at
> the top. I know this may sound confusing. To put it another way, I want to copy
> to the new directory everything you would get if you did an "ls" of the old
> directory, plus I want to copy recursively; I just now want it all to be under
> linux-2.4.20-sp with no linux-2.4.20 directory present. but I still want to
> maintain the original tree from which I am copying. Without having to go
> into linux-2.4.20 and copy each file in that directory and each directory
> recursively over to linux-2.4.20-sp, Is there a way to do this?
> Speakup mailing list
> Speakup at braille.uwo.ca
Name: Terry D. Cudney
Phone: (705) 422-0039
E-mail: terry at CottageInWasaga.com
Please avoid sending me Word or PowerPoint attachments.
Having a smoking section in a restaurant is like...
having a peeing sectionin a swimming pool.
More information about the Speakup