Different ways to edit those settings
The settings you mention are stored in the
dconf database in
~/.config/dconf (in binary format). This database can either be directly edited with
dconf, or via
gsettings. The difference is explained at the last section of this answer.
Once you have the information, posted in your question, you can therefore change the corresponding settings in two different ways.
Using your first example (setting
using dconf write:
dconf write /org/gnome/desktop/privacy/remember-recent-files false
using gsettings set:
gsettings set org.gnome.desktop.privacy remember-recent-files false
Similarly, reading the current setting:
using dconf read:
dconf read /org/gnome/desktop/privacy/remember-recent-files
using gsettings get:
gsettings get org.gnome.desktop.privacy remember-recent-files
In the first case, you edit the
dconf database directly, in the latter you are using
gsettings, which is a CLI frontend to dconf.
Which way to prefer; dconf or gsettings?
To protect the integrity of your
dconf database, in general, it is considered better practice to use
Frome this link, we read:
The dconf program can perform various operations on a dconf database,
such as reading or writing individual values or entire directories.
This tool operates on dconf directly, without using gsettings schema
information. Therefore, it cannot perform type and consistency checks
on values. The gsettings(1) utility is an alternative if such checks
are needed. You can see
gsettings as the cli-frontside to
Read more on gsettings and dconf.
dconfschemas you got in the output of
dconf watch /?
dconf write KEY VALUE. see askubuntu.com/q/22313/295286 and askubuntu.com/q/487206/295286 for some info .