View previous topic :: View next topic |
Author |
Message |
Negated Void l33t
Joined: 25 Dec 2002 Posts: 672
|
Posted: Sun Aug 15, 2004 4:10 am Post subject: Merging two folders? |
|
|
I have two folders with some of the same subfolders, each containing diffrent files. I want to copy one into the other, so that no files are removed, and the subfolders are merely merged.
What command would do this?
-Matt |
|
Back to top |
|
|
Gherald2 Guru
Joined: 02 Jul 2003 Posts: 326 Location: Madison, WI USA
|
Posted: Sun Aug 15, 2004 6:29 am Post subject: |
|
|
cp -R
add -i for interactive
add --reply=yes to overwrite existing files with the same name (default)
add --reply=no to not overwrite
see man cp for other details
if you want to move instead of copy, use mv _________________ Unregistered Linux User #17598363 |
|
Back to top |
|
|
|