Find the answer to your Linux question:
Results 1 to 3 of 3
Is there any linux tools out there that allow me to do the following: I would like to amalgamate/merge the directory contents of several folders into one. Example: When I ...
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    2

    Combine the contents of multiple folders into one: How?

    Is there any linux tools out there that allow me to do the following:

    I would like to amalgamate/merge the directory contents of several folders into one.
    Example: When I look in /mnt/merged/ I would like to see the contents of /mnt/nfs-share1, /home/user and /mnt/data

    And I'm not talking about setting 3 symbolic links in /mnt/merged, either. I mean to actually see the contents of all 3 folders when I do a ls -al /mnt/merged

    If nothing exists, then any thoughts how I could achieve that?

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    You could either physically move the files, which I suspect is not what you are looking at or you could write a script that would create symbolic links for every file in each directory. Unfortunately mounting is not an option because then you are in a situation where you can't write back (three locations).

    Unless I suppose you were using some kind of overlay file system, possibly through fuse. That is how several live cds work.

  3. #3
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    You might find this interesting:

    UnionFS - Wikipedia, the free encyclopedia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...