May somebody tell me if there is there some way to "merge" one dir into another?
I.e. let I have /some/directories/structure
with subdirs/files. And now I want to "implantate" it into /etc
for example. I.e. I need all subdirs/files from /some/directories/structure
will be added into (should not replaced current contents of /etc
) /etc
or some other dir.
EDIT:
OK. Let's say I have a dir called prog
. It contains a couple of a configuration files. This dir stored somewhere in my home dir while I develop my program and it must be installed into /etc
in the working system. And now I want to debug my program, but to run it I need the prog
dir (which stored in my home dir) became accessible in the /etc
. So my question: may I do this in some "virtual" way (i.e. without copying, moving, rsyncing or even linking the prog
into /etc
)? Maybe there is something method to mount it, but (again) without physical creating anything in the /etc
.
The key for me here is: "Do not forget something unneeded in the /etc
".
Ohhh... I hope all is OK with my question now. :)
mv
? – Keyshov Borate Mar 04 '16 at 09:28mv
,rsync
etc, but I need to do this temporary and for reasons of developing so I don't want to worry in the future whether I removed my dirs/files, whether I updated them with a new version etc. – Serge Roussak Mar 04 '16 at 09:35/a/b/c
and 'merge' it into/etc/
do you mean/etc/a/b/c
or do you mean/etc/c
). More detail please. – EightBitTony Mar 04 '16 at 09:48mv /some/directories/structure/* /etc/
- you can usecp
instead ofmv
for trial or better yet create a duplicate and try that code and see if that is what you want. I do not think it checks for duplicates though, if it finds any duplicate it may replace it. – Dean Mar 04 '16 at 09:56/etc/
for config files, but I don't have root access so i can't modify/etc/
which I guess is the issue here). – EightBitTony Mar 04 '16 at 13:16