Home  >  Article  >  Operation and Maintenance  >  Does the linux system have a registry?

Does the linux system have a registry?

青灯夜游
青灯夜游Original
2022-06-21 19:38:534206browse

Linux system does not have a registry. The registry is used to store system and application configuration information, but the Linux system does not have a registry mechanism. Linux has always used separate text files to store configuration information. Advantages of Linux's registry-less mechanism: 1. It does not generate too much garbage and reduces the risk of system paralysis; 2. It is convenient to repair damaged software. Once a program has a problem, you only need to delete the corresponding storage configuration file folder, the problematic program will be restored to the state when it was just installed; 3. Convenient software migration.

Does the linux system have a registry?

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

Linux system does not have a registry.

The Registry (Registry, called the login file in the Traditional Chinese version of Windows operating system) is an important database in Microsoft Windows, used to store configuration information of the system and applications.

The Linux operating system has always used separate text files to store configuration information.

In other words: Linux uses the entire file system as the "registry", and the tree structure of the Windows registry can roughly correspond to the tree structure of the Linux file system.

Linux configuration files are equivalent to registry keys, or Linux uses a distributed registry.

So why is Linux designed this way? Because Linux is a so-called network operating system, a single computer is not the limit of Linux. If it is a system composed of multiple computers, then distributed management has huge advantages.

For example: damage to a disk containing configuration files will not paralyze the entire system, but may only cause partial function failure.

Advantages of Linux's registry-less mechanism

1. Linux's registry-less mechanism does not generate too much garbage.

Under win, after uninstalling a software, a large amount of useless information will still remain in the registry, which needs to be cleared using their software, and this clearing carries the risk of paralyzing the system. . Under Linux, as long as you manually delete the folder where the configuration is stored, there will be no junk information. This is also safer and will not leak secrets.

2. The registry-less mechanism of Linux facilitates the repair of damaged software.

The damage mentioned here does not mean that the executable file is damaged, but that problems occur in the software due to careless configuration.

Once there is a problem with a certain program under Linux (such as compiz), you only need to delete the corresponding folder that stores the configuration file (compiz corresponds to ~/.config/compiz). The program will be restored to the state it was in when it was just installed. If it is a program that uses the registry to store configuration information, it will be more difficult to restore it.

3. The registry-less mechanism of Linux facilitates software migration.

Use a program. With regular use, constant settings, and adjustments, this program will become more and more convenient. If you suddenly change a computer, all the configuration work will have to be done from scratch. , seems very troublesome. If you encounter the same problem under Linux, you only need to copy the corresponding configuration file to your new computer, and the software in this new computer will become exactly the same as that in the original computer, from the interface to the plug-ins, and then Down to the smallest usage habits, they are exactly the same.

Related recommendations: "Linux Video Tutorial"

The above is the detailed content of Does the linux system have a registry?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn