Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Newbie
Reload this Page Combine the contents of multiple folders into one: How?
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Newbie If you're new to the wonderful world of Linux, start here!

Reply
 
Thread Tools Display Modes
Old 07-06-2008   #1 (permalink)
outsider787
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?
outsider787 is offline   Reply With Quote
Old 07-06-2008   #2 (permalink)
bigtomrodney
Bigtomrodinator
 
bigtomrodney's Avatar
 
Join Date: Nov 2004
Location: Sunny South-East of Ireland
Posts: 5,144
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.
__________________
In the land of the blind, the night vision users are laughing at the king

Registered Linux user #378740

New members read here / Forum Rules
bigtomrodney is offline   Reply With Quote
Old 07-07-2008   #3 (permalink)
i92guboj
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 1,022
You might find this interesting:

UnionFS - Wikipedia, the free encyclopedia
i92guboj is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 12:55 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0