Forrest logo
back to the fc-cache tool

fc-cache:tldr:ac99b

fc-cache: Force a rebuild of all font cache files, without checking if cache is up-to-date.
$ fc-cache -f
try on your machine

The command "fc-cache -f" is used to forcefully re-generate the font cache files in your system.

The "fc-cache" command is part of the fontconfig utility, which manages font configuration and font matching on Linux and Unix systems. The font cache files are used by fontconfig to speed up the font-loading process and improve system performance.

By default, the "fc-cache" command updates the font cache by scanning the font directories specified in the configuration files. It looks for font files and generates the corresponding cache files for quick access.

The "-f" option, when used with "fc-cache", forces the regeneration of the font cache files, even if they already exist. This is useful when you've installed new fonts or made changes to the fonts configuration, and you want the changes to take effect immediately.

So, running "fc-cache -f" will forcefully re-scan the font directories, detect any modifications or additions, and regenerate the cache files accordingly.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the fc-cache tool