Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
No, and there is no one-to-one equivalent. You can think of the qualities of the registry as being divided into multiple different places. Mainly . . .
1) The flat configuration files for each program/application. (Mostly, but not all, in /etc and sub-folders thereof.)
3) The kernel configuration, determined at build-time, but usually a copy is at /boot/conf
I suppose that, for some other registry keys, there are even a few more places that the "equivalents" could be found. What specifically, if anything, are you looking to find?
You have to be careful when learning a new operating system to avoid looking to always draw parallels between it and another operating system that you already know. It is very tempting to want to bring knowledge along with you, but it mostly only serves to confuse. Believe me, when parallels are there, you will recognize them. Seek to learn a new operating system as if it was the first one you ever encountered. After you have encountered a few, the handful of concepts that are universal will become apparent to you.
If you really want to see the similarity to Microsoft software, recall that the MS "registry"was introduced as a "replacement" for the Windows 3.1 *.ini files. The "rational" that MS offered was that the "ini" files were too easy for system users to mess up, and that they exposed propitiatory information to "unauthorized" users.
The "ini" concept had been imported to MS software by developers familiar with the UNIX operating systems use of files in /etc (and hidden files in ~/.*) to store run-time information for programs. Since GNU/Linux was created as an "open," non-propitiatory, OS (that, somewhat later, was modified to [almost] conform to the POSIX UNIX standards) there was no need to "protect" propitiatory information. Thus there was no need to replace the /etc files with a "registry."
Note the reference to ~/.* above. If you do a ls -a ~/.* in a terminal window, you'll see several "hidden" files containing local settings or other information specific to your user id. (Caution: Some of those hidden files control the X-server for your display. Messing with them can cause your X-server to stop working.) Most of the other files a simple text files that you can look at and change as you feel is appropriate.
Note also that most Linux file browsers have an option, usually under "View" or "Settings," to display hidden files.
My point is that, in addition to the files in /etc, your user-specific settings are usually in hidden files stored (usually) in your home directory (~/) with names that start with a dot.
Last edited by PTrenholme; 05-31-2010 at 12:21 PM.
Like others have said the Windows like registry in Linux is its init config, scripts, configs, and environment variables. Also some programs in Linux uses mySQL and sqlite. Though there is a command that will list print out all the configs that will resemble like a Windows registry if the Windows registry is exported. The size is huge though.
Sorry I do not remember the command.
The reason why Microsoft put all the configs in the registry is because of space. Text or ASCII files takes up more space than binary. Also they want it be all in one place and provide some standard. The standards have not been comply completely by every Windows developer, so you will have to clean up the mess or else you just have to do a re-install. Using binary files makes it easy to edit with GUI. Linux configs are ASCII that relates to INI files. INI files are harder to deal with when using GUI programs. Though if XML like formating for configs are used, a human or GUI can edit with minimal problems. KDE programs and others uses XML for its config. Apache and CUPS uses a non-valid XML format which makes it hard to create a GUI program to edit them.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.