The Registry vs Text Files

I think of the Windows Registry as the ultimate configuration database—thousands upon thousands of entries, very few of which are completely documented, some located on servers and some located on clients. While it is possible to edit Registry entries manually, the fact that one does so using a graphical tool doesn't make the process intuitive.

Consider this Windows .NET Server Registry setting: In HKEY_LOCAL_MACHINE\ SYSTEM\CurrentControlSet\Control\SessionManager\Memory Management\PrefetchParameters, set EnablePrefetcher to 0x00000003 to enable application and boot prefetching. Even assuming you know what prefetching is and want to enable it, that's a daunting configuration change, and not one that I remember offhand.

If you're not getting my message, I'm saying that the Windows Registry system is, at best, very difficult to manage. Although it's a good idea in theory, I've never emerged without injury from a battle with the Registry.

Linux does not have a registry. This is both a blessing and a curse. The blessing is that configuration files are most often kept as a series of text files (think of the Windows .INI files before the days of the Registry). This setup means you're able to edit configuration files using the text editor of your choice rather than tools like regedit. In many cases, it also means you can liberally comment those configuration files so that six months from now you won't forget why you set something up in a particular way. With most tools that come with Linux, configuration files exist in the /etc directory or one of its subdirectories.

The curse of a no-registry arrangement is that there is no standard way of writing configuration files. Each application or server can have its own format. Many applications are now coming bundled with GUI-based configuration tools, so you can do a basic setup easily and then manually edit the configuration file when you need to do more complex adjustments.

In reality, having text files to hold configuration information usually turns out to be an efficient method. Once set, they rarely need to be changed; even so, they are straight text files and thus easy to view when needed. Even more helpful is that it's easy to write scripts to read the same configuration files and modify their behavior accordingly. This is especially true when automating server maintenance operations, an ability that is crucial in a large site with many servers.

Because Linux configuration files are text files, configuring systems automatically can be done quickly and easily without special tools. Simple scripts can be written to set the configuration values, making deployment of a new operating system, software package, or utility very easy. Windows requires third-party software (often licensed on a per-machine basis, which can become very expensive for large projects) to perform similar feats.

Continue reading here: Cleaning Up

Was this article helpful?

+14 -2

Readers' Questions

  • sophia
    What are the files that make up a system registry called?
    2 months ago
  • The files that make up a system registry are typically called registry hive files. These files contain the configuration and settings for the operating system, software applications, device drivers, and user preferences. Common registry hive files include:
    1. HKEY_CLASSES_ROOT: Contains file type associations and COM object registration information.
    2. HKEY_CURRENT_USER: Stores the preferences and settings for the current user.
    3. HKEY_LOCAL_MACHINE: Contains hardware and software configuration settings for all users.
    4. HKEY_USERS: Stores profiles and settings for all user accounts on the system.
    5. HKEY_CURRENT_CONFIG: Holds information about the hardware profile currently in use.
    6. HKEY_DYN_DATA: Maintains information about Plug and Play devices.
    7. NTUSER.DAT: Stores the current user's individual settings.
    8. These files are typically stored in the Windows Registry folder (C:\Windows\System32\Config).
    • yvonne
      What are registry files called?
      3 months ago
    • Registry files are typically called "Registry hives" or "Registry keys".
      • marco gamgee
        How many files make up the registry on your system?
        3 months ago
      • The number of files that make up the registry on a system can vary depending on the operating system. For example, in Windows operating systems, the registry is typically stored in several files within the Windows/System32/Config folder. These files include: - SAM: Contains security account manager information. - Security: Stores security configuration and policy data. - Software: Holds settings and configuration data for installed software. - System: Stores information about the system, hardware, and system preferences. - Default: Contains default settings for new user profiles. In addition to these main files, there are also transaction logs and backups that may be associated with the registry. The exact number of files can vary as the registry is constantly modified and updated by the system and installed software.
        • duccio
          What is a registry file?
          4 months ago
        • Registry files are files that contain information about the configuration of the operating system, installed applications and the user preferences of a computer system. They store settings and options which are used to control the operation of the software and hardware on the computer. The registry files are used to configure the computers system settings and keep track of the hardware and software configuration.
          • RUTH MACKAY
            What is the registry and how does it distinguish windows and linux?
            4 months ago
          • The registry is a centralized database in Windows operating systems that stores configuration settings and options for the operating system, installed software, and hardware devices. It serves as a hierarchical database comprised of keys, subkeys, and values that contain information and settings related to various aspects of the Windows system. The registry in Windows is specific to the operating system itself and its applications. It is integrated deeply into the Windows architecture and is primarily accessed via the Registry Editor, a built-in tool allowing users to view, modify, and manage registry entries. On the other hand, Linux does not have a centralized registry like Windows. Instead, Linux operating systems use configuration files stored in various locations on the file system to control and manage system settings and software configurations. These configuration files are typically written in plain text and can be accessed and edited directly using a text editor. Linux configuration files are usually located in the /etc directory or in specific directories related to the software or service they control. Each application or component in Linux can have its own configuration files, making it more decentralized compared to the Windows registry.
            • eemeli
              What is the linux version of regedit?
              8 months ago
            • There is no Linux version of Regedit, but there are a few programs that offer similar functionality. The two most commonly used ones are: • regedit (from the Gnome-Tools project) • regtool (from the CLI-Tools project)
              • Ermenegilda Padovesi
                Where are registry files?
                10 months ago
              • Registry files are located in the Windows folder on your hard drive. It can be found at C:\Windows\system32\config\ or C:\Users\[username]\AppData\Local\Microsoft\Windows\ in Windows10.
                • frances mendenhall
                  Does linux have a registry?
                  1 year ago
                • No, Linux does not have a registry.