All Linux programs have an executable file with operational codes that the CPU executes to perform specific tasks. The behavior of almost any linux program can be customized according to your preferences or needs by modifying the program configuration files.
In Linux, each programmer is free to choose the configuration file format they prefer. The formatting options range from the 'shells' file, which contains a list of possible login shells separated by a new line, to the complex 'httpd.conf' Apache file with web server configuration.
The Linux system makes extensive use of the configuration files, regardless of their extension. Although it is more common to find the CONF files, you can also find, in certain occasions, CFG files. Below is an abbreviated list of processes and situations where Linux makes use of configuration files:
It is very common task in Linux to manually edit configuration files. Typically, configuration files are stored in subdirectories as text files.
To make any changes to the configuration, either of any user program, or the configuration of the system itself, you can use any of the programs listed below:
For example, to edit the web configuration .conf file you must do the following procedure:
Step 1: Locate the file. Location will depend on the distribution and initial location of the Apache server installation. In our case of Debian Linux it is located in:
/etc/apache2/conf-available
Step 2: Because it is a Debian-based distribution with a graphical interface (Raspbian Desktop) there are several ways to open the file:
$ sudo nano javascript-common.conf
Note that the Nano editor has a menu that can be seen at the bottom.
The configuration files in Linux are extremely important and special care must be taken when modifying them, especially the system configuration files.
CFG Quick Info | |
---|---|
Configuration file | |
MIME Type | |
Depends on Application | |
Opens with | |
Notepad++ Visual Studio Code Sublime Text |