[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 ?



> 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 :(
## ok above command is trying to copy dir/ to home/sites/www.domain.be/web/ 

think www.domain.be is a symbolic link better to cp or mv to
/home/sites/sitex/  - etc

## ok i dont think mv has a recursive option it will move all dirs and sub dire
files etc.

try copy to start with recursive switch is lowercase r
#3 usage cp -r taerget/directory   /newlocaltion

cp -r /home/sites/sitex   /home/sites/sitexnew
or
cp -r /home/sites/sitex/*   /home/sites/sitexnew/

or using move

mv /targetfilesordirs  /newlocation

hope above makes sense
b w g




> 
> Bob
> 
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
-- 
------------------------------------------------------
http://www.coolcat.net      http://www.coolcoach.net 
 10:01am  up 22 days, 23:56
A Linux machine! because a 486 is a terrible thing to waste!