Configure everything with an editor

xiaoxiao2021-03-06  86

Many friends who have just come over from the Windows world are Linux height configurability, flexibility, but when they really face Linux, they feel that they will start. In fact, the configuration principle of the Linux system is much simpler than Windows. Do not believe? Let us first see that Windows is if users are configured.

Everyone knows that there is a registry in Windows, it is a huge guy who records most system information. Experienced old birds like to optimize their own systems by modifying the registry. However, the registration table is really large, and Microsoft does not have a document to indicate the meaning of a registry key value, so a few key values ​​are not easy. A management method called "Group Policy" is used in Windows 2000. This is a graphical management interface that can be set with a mouse. But it is still a modification of the registry. In addition to the registry, there are some configuration files in Windows, such as boot.ini is used to set the boot option, which can be modified with a normal text editor (such as "Notepad"), and the configuration file record is often compared. "Bottom" thing, but because of its lack of instructions, modifications to profiles are often very complicated, and it is very dangerous. Fortunately, there is a control panel in Windows, providing a fully graphical configuration environment that can manage software and hardware. Since it is so wide, the principle of Windows is as simple as possible, then there is a lot of room for naturally selectable in configuration.

In contrast, Linux configuration is much simpler, fully use of files! The "file" mentioned here refers to the text file, which is the file saved in the file in Windows, which is the file in the ASCII format. This means you can control the operating system or other application software with a universal text editor, such as VI, modify the relevant configuration file. Although some profiles look long (such as XFree86 profile XF86Config), most of them are related illustrative texts with "#", are not configuration options, you can understand the meaning of each configuration parameter in the file. , Then modify the parameters of the configuration file according to the instructions in the file itself, which affects the behavior of the program. For example, there is a startup script in my user directory -. Xinitrc begins with hidden files), inside the content: xterm -bg black -fg green & xclock -digit & exec fvwm2

This way, when I type STARTX under the console, I will start the FVWM2 - a window manager, not the original KDE, and open a background for black, the foreground is a green xterm window and a square number clock. Since only three programs are started, the speed is quite fast.

How to find a program configuration file? In general, there is a detailed description of the program's various descriptions, or the relevant DOC directory, should be taken seriously.

Some programs are not only one, such as .bashrc .bash_profile .dir_color, etc., each has different functions, which can find the appropriate instructions in the computer.

转载请注明原文地址:https://www.9cbs.com/read-106847.html

New Post(0)