At boot time the "/etc/rc" scripts initiate the FreeBSD system according to the parameters in the "/etc/defaults/rc.conf" and "/etc/rc.conf" files.
- "/etc/defaults/rc.conf": contains the default parameters. If we want to change any of these, we do it in the "/etc/rc.conf" file.
Sysrc - Editing the "rc.conf" file -:
We can use the below command to get parameters -non-default- about our system:
For configuring the hostname for example, we would use the below command:
The "-f file" is optional in our case, normally, we use it when we refer to other configuration files.
For configuring our network interface for example, we would use the below command: