[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] [Raq4] how move a whole dir with subdirs to another dir ?



"bob lenaerts" <bob@xxxxxxxxxx> wrote:
> Ik now this has nothing to do with cobalts, but I do not seem to know
> the unix command, to MOVE a whole directory WITH subdirs to another
> directory.
> Can anyone help me ?
> Move or copy, I don't care :-)
>
> mv -R dir/ /home/sites/www.domain.be/web/  does not seem to work :(

mv does not have a -R flag.  Simpy do:

mv path_to/source_dir path_to/destination_dir

if you want it to create destination_dir.

or

mv path_to/source_dir path_to/destination_dir/.

if you want source_dir to be dropped into destination_dir.

If this isn't clear create directiories in /tmp and play with them until
it's clear.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/