Configuration or config files are regular files that contain settings for an application. During the initial stage of execution, many applications in Linux and UNIX read settings from config file(s) and configure the application accordingly.
Configuration files are generally present in the
/etc/ directory and can be viewed using the
For example, consider viewing the
resolv.conf config file:
$ cat /etc/resolv.conf
# Generated by NetworkManager search WirelessAP nameserver 192.168.1.1
resolv.conf file contains the order in which to contact DNS servers.
We can also modify a configuration file to meet our requirements. For example, we can add another DNS entry in the