Mariadb configuration files

In the documentation there are several examples of settings in the various configuration files. They all say

Your /etc/mysql/my.cnf could look like this:

There’s a lot of stuff in there. Mine are almost empty. Am I supposed to copy and paste the content of the examples or is there a configuration script that populates these files initially?

Thanks for any help.