fc-cache command in Linux with Examples
The fc-cache command in Linux scans the font directories and build font cache for applications which use fontconfig for their font handling. When no arguments are passed fc-cache scans each directory for font files readable by FreeType. A cache is created which contains properties of each font and the associated file name, this cache is further used to speed up application when using fontconfig library during boot.
Synopsis:
fc-cache [ -EfrsvVh ] [ –error-on-no-fonts ] [ –force ] [ –really-force ] [ [ -y dir ] [ –sysroot dir ] ] [ –system-only ] [ –verbose ] [ –version ] [ –help ] [ dir… ]
Options:
- -E(–error-on-no-fonts): When used this option an error will be thrown if their are no fonts present in dir or directories in the configuration.
- -f(–force): When used this command there will be Force re-generation of apparently up-to-date cache files, overriding the timestamp checking.
- -r(–really-force): This option will erase all the existing cache files and rescan.
- -s(–system-only): This command will scan only the system-wide directories and omit the places located in /usr/home directory.
- -v(–verbose): Will verbose the output while in process.
- -V(–version): Will display the version and exit.
Example:
fc-cache -Ev

Note: fc-cache returns zero if cache is successfully generated else non-zero
Recommended Posts:
- atd command in Linux with examples
- tar command in Linux with examples
- cpp command in Linux with Examples
- wc command in Linux with examples
- atq command in linux with examples
- cd command in Linux with Examples
- let command in Linux with Examples
- bc command in Linux with examples
- yes command in Linux with Examples
- for command in Linux with Examples
- mv command in Linux with examples
- sum command in Linux with Examples
- cvs command in Linux with Examples
- tac command in Linux with Examples
- ed command in Linux with examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



