Check font directory with ls /usr/share/fonts
In the previous step, you used fc-list
to see all the fonts Fontconfig knows about. Now, let's look at one of the common directories where system-wide fonts are stored: /usr/share/fonts
.
The /usr/share/fonts
directory is a standard location on many Linux distributions for installing fonts that are available to all users on the system. Inside this directory, you'll often find subdirectories organized by font type (like truetype
, opentype
) or by font family.
We will use the ls
command to list the contents of this directory. The ls
command is used to list files and directories.
Open your terminal and type the following command:
ls /usr/share/fonts
Press Enter.
You will see a list of directories and files within /usr/share/fonts
, similar to this:
X11 cmap encodings opentype truetype type1
This output shows the subdirectories within /usr/share/fonts
. These subdirectories contain the actual font files (.ttf
, .otf
, etc.).
You can explore further by listing the contents of one of these subdirectories, for example, the truetype
directory:
ls /usr/share/fonts/truetype
Press Enter.
You might see output like this:
dejavu liberation ubuntu wqy
This shows the font families installed within the truetype
format directory. You can continue navigating deeper into these directories to see the individual font files.
Understanding where fonts are stored helps you manage them and understand how the system accesses them.