Open In App

fc-cache command in Linux with Examples

Last Updated : 14 Sep, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

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 there 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


Previous Article
Next Article

Similar Reads

Ccat – Colorize Cat Command Output command in Linux with Examples
ccat is a command-line tool for Linux and OSX, which is similar to the cat command in Linux. But the difference between cat and ccat is that the ccat shows the content of the file with the syntax highlighted. Currently, ccat supports the following programming languages. JavaScriptJavaRubyPythonGoCJSONInstallation of Ccat First, we are going to see
2 min read
How to Display Command History in Linux | history Command
The command-line interface in Linux provides powerful tools for users, and mastering command history is essential for efficient navigation and retrieval of previously executed commands. The history command is a valuable utility that allows users to view and search through their command history. In this comprehensive guide, we will explore the vario
4 min read
How to Clear RAM Memory Cache, Buffer and Swap Space on Linux
RAM memory is a very important component of the computer system. it helps store data and code currently used by the operating system. This article will show how to Clear RAM Memory Cache, Buffer, and Swap Space on Linux. In every system, we come across caches that have unwanted files and can harm our system, the same thing happens in the Linux cach
5 min read
How to Flush the DNS Cache in Linux?
Flushing the Domain Name System (DNS) cache in Linux is a common troubleshooting step to resolve various networking issues and ensure the system retrieves the most up-to-date information when resolving domain names to IP addresses. The DNS cache stores previously resolved domain names and their corresponding IP addresses, reducing the time and reso
4 min read
How to see cache statistics in Linux?
Cache is a very important part of the computer hardware to give superfast response time. Cache Performance When the processor needs to read or write a location in main memory, it first checks for a corresponding entry in the cache. If the processor finds that the memory location is in the cache, a cache hit has occurred and data is read from cache
2 min read
select command in Linux with examples
select command in Linux is used to create a numbered menu from which a user can select an option. If the user enters a valid option then it executes the set of command written in select block and then ask again to enter a number, if a wrong option is entered it does nothing. If user enters nothing and simply press 'enter' the option menu gets print
1 min read
ZIP command in Linux with examples
ZIP is a compression and file packaging utility for Unix. Each file is stored in a single .zip {.zip-filename} file with the extension .zip. Zip is used to compress files to reduce file size and is also used as a file package utility. Zip is available in many operating systems like Unix, Linux, windows, etc.If you have limited bandwidth between two
7 min read
atrm command in Linux with examples
atrm command is used to remove the specified jobs. To remove a job, its job number is passed in the command. A user can only delete jobs that belong to him. Only superuser can delete any job even if that belongs to another user. Syntax: atrm [-V] job [job...] Options: -V : Used to print the version number atrm -V job : Job number of the job which i
1 min read
comm command in Linux with examples
comm compare two sorted files line by line and write to standard output; the lines that are common and the lines that are unique. Suppose you have two lists of people and you are asked to find out the names available in one and not in the other, or even those common to both. comm is the command that will help you to achieve this. It requires two so
5 min read
cmp Command in Linux with examples
cmp command in Linux/UNIX is used to compare the two files byte by byte and helps you to find out whether the two files are identical or not. When cmp is used for comparison between two files, it reports the location of the first mismatch to the screen if difference is found and if no difference is found i.e the files compared are identical.cmp dis
5 min read