Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm pretty well-versed in *nix administration. I'm no developer or hardcore coder, but I can get my way around code well enough to be dangerous.
I wish there was a filetype that was actually two (or more) files chained together. From the user perspective, it is a single file; however, once saved, it is actually multiple files. There would need to be markers in the source file to indicate where to split, but that's not hard. This would solve things like above-the-fold CSS problems by allowing all CSS to be managed in a single place while in reality having it split up dynamically for purposes of efficiency.
Conversely, I wish there were a way to dynamically "embed/link" config files. Say you have multiple htaccess files, but they all need to have the same mod_deflate directives. There could be a single mod_deflate file that is referenced by all htaccess files - edit the "master file," and all the others inherit those changes.
I can think of ways to build these structures by creating static versions of the desired files whenever the source files are changed, but that gets messy - nothing prevents the static copies from being accidentally changed. There is no solid parent/child link that would persist after file save to prevent that modification.
I suppose I'm just rambling, but does anything exist that I'm just not aware of?
Webmin interfaces for some applications have one settings screen. When you sumit the settings they are written out to the config files where they are needed, one file or many.
May config systems that were once a single config file now include an "include" macro that can load up settings from another file, or all the files in a special folder. Applications are routinely written to include directory parse functionality.
Example: not long ago /etc/profile was critical. It still is, but check out /etc/profile.d as well.
Man pages do a good job of letting you know if your application handles a setting folder instead of, or in addition to, a settings file.
While that is indeed true, there is an application layer or management system that is required for that to work (and they're all different). Instead, how nice would it be if there were a way to do this at the system level? The second case would be easier to accomplish and could be an extension of ln and tar in a way (by way of analogy, really). For instance:
Code:
ln -l [parent] [child1] [child2] [childN]
The -l option would be "link," and it would instruct the system to dynamically chain the files together when read. Since tar is nothing more than a bitstream of files clumped together with a header table specifying where each file starts and stops, code that is similar to that could do the actual work. When running ls -l, the linked child files would be shown.
The first case is quite a bit harder to handle from the system level. To use my previous analogy in reverse, imagine editing a tar file using vi to edit the files that are contained. One would have to know what file is currently be edited on the current line and make sure to update the header tables at the top with where each file now starts and stops in the stream. I can envision how that could be accomplished, but it's not as easy as the opposite direction.
I'm not posting so as to suggest that these things need to be implemented. Rather, I'm just musing. I sure wouldn't complain if they WERE implemented - there are definitely problems that could be solved by such structures!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.