Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Merging two folders?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Negated Void
l33t
l33t


Joined: 25 Dec 2002
Posts: 672

PostPosted: Sun Aug 15, 2004 4:10 am    Post subject: Merging two folders? Reply with quote

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
View user's profile Send private message
Gherald2
Guru
Guru


Joined: 02 Jul 2003
Posts: 326
Location: Madison, WI USA

PostPosted: Sun Aug 15, 2004 6:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum