> > And the first time I copied the files, I wanted to have all the .files 
> > copied too, so I ran cp .* -Rv ~ and went into an infinite loop! 
> 
> .* includes the parent directory .., so of course it would.  If I want
> to copy an entire directory, I use an archiving utility, usually tar:
> 
> tar -cO . |tar -C <where I want it> -xf -
> 
> I don't know off hand how to change permissions while copying, but it is
> easy enough to do chmod -R <what you want> <where it is>
> FI chmod -R 660 ~/

Generally, when I want to copy an entire directory structure, I use the -r
(recursive) switch on cp:
        cp -rv /mnt/cdrom/* /home/james/cdcopy/

(the "v" switch is of course for verbose).

JFK


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to