Finding and Backing Up Installed Fonts on Linux: A Complete Location Guide

Abstract: Linux fonts are scattered across user, system, and tool-specific directories. This guide explains where graphical apps find fonts, what fontconfig does, and the smartest way to back up your font collection.

Created: 2026-11-02 by

On Linux, the fonts that matter for everyday graphical applications live in a small set of directories that the fontconfig subsystem knows about — primarily ~/.local/share/fonts (your personal fonts), /usr/share/fonts and /usr/local/share/fonts (system-wide fonts), and a handful of special paths used by sandboxed or specialized software. The rest of the font-like directories you may find on disk serve other subsystems entirely and can generally be ignored when backing up your collection.

Why fonts are scattered across so many directories

Linux has no single font registry. Instead, different layers of the system each maintain their own font locations:

  • Fontconfig is the shared discovery mechanism used by nearly all graphical toolkits, including both GTK and Qt applications. It maintains its own list of directories it scans for font files.
  • The X server historically had its own font handling, which is why you may still see a /usr/share/fonts/X11 tree alongside the ordinary /usr/share/fonts hierarchy.
  • Specialized software bypasses fontconfig entirely. The Linux console uses /usr/share/consolefonts, GRUB keeps its own fonts for the boot menu, TeX distributions ship typefaces under a texmf tree, and Wine maintains a Windows-style font directory.
  • Sandboxed applications such as Flatpak re-export fonts through paths like /var/lib/flatpak/exports/share/fonts, which can make a font visible to sandboxed apps but not to everything else, or vice versa.

This is why the same font may appear in several places, and why a font you install in one directory might not show up in every application you use.

How to get the definitive list of font directories

Rather than guessing, ask fontconfig directly. Running the cache rebuild in verbose mode prints every directory it scans:

fc-cache -fv

Watch the output and you will see each path it walks, from your home directories to the system trees and any Flatpak exports. This is the most reliable inventory of where your graphical applications look for fonts.

To find out where a specific font file lives, ask fontconfig to match it and show the details:

fc-match -v 'Some Font Name'

The verbose output includes the full path of the file that was matched, which is exactly what you need when you want to copy a particular typeface elsewhere.

What the fontconfig directories actually contain

Two similarly named locations confuse many people:

  • /usr/share/fontconfig does not contain fonts. It holds stock configuration snippets that distribution packages install.
  • /etc/fonts/conf.d is the directory fontconfig actually reads. It is largely composed of symlinks pointing into the snippets above, enabling or disabling behaviors like hinting, aliasing, and font substitution rules.

Your personal customization belongs in ~/.config/fontconfig/fonts.conf. That is the file to edit if you want per-user substitution rules, preferred defaults, or directory additions — and it is worth including in any backup of your desktop configuration.

The differences between user and system font locations

The practical distinction is less about priority and more about ownership:

  • ~/.local/share/fonts (and the legacy ~/.fonts) is for fonts you download and install yourself. No root access needed, no package manager involvement, and they are invisible to other users on the system.
  • /usr/share/fonts is managed by your package manager. Fonts there arrived via apt install or an equivalent, and you should not add, remove, or modify files in it by hand.
  • /usr/local/share/fonts is the traditional home for system-wide fonts installed manually by the administrator, outside package management.

Load order between these locations technically exists, but you should not build anything on it. Treat user directories as "mine" and system directories as "the distribution's."

A sensible backup strategy

Trying to enumerate every font directory for backup purposes is fragile. A better approach:

  1. Back up your home directory as a whole. This captures everything under ~/.local/share/fonts, ~/.fonts, and your fontconfig configuration automatically, with no extra effort.
  2. Do not restore files into /usr from a backup. System fonts should be reinstalled through the package manager so the package database stays consistent.
  3. If you only want your personal fonts, compress ~/.local/share/fonts directly, or use fc-match -v to locate any specific font files you need and copy those.

For ongoing management rather than backup, a dedicated tool such as Font Manager gives you a graphical view of everything installed, lets you install and remove fonts cleanly, and makes it obvious which fonts you would actually want to preserve.

Getting newly installed fonts recognized

After adding files to a user font directory, most modern desktops pick them up automatically. If an application does not see them, run fc-cache -fv once to rebuild the cache, then restart the application. Keep in mind that fonts installed only in user directories will not be available to Flatpak sandboxed apps unless they are exported appropriately, and will never be used by the console, GRUB, TeX, or Wine, which maintain their own font sources.

Frequently Asked Questions

Is ~/.fonts still valid, or should I use ~/.local/share/fonts?

Both work. ~/.fonts is the legacy location and fontconfig still scans it, but ~/.local/share/fonts follows the modern XDG directory convention. New installs should go there.

Do I need root privileges to install fonts?

Not for your own use. Dropping font files into ~/.local/share/fonts makes them available to all your graphical applications. Root is only needed for system-wide installation, which is best done via the package manager.

Why does a font appear in one app but not another?

The application may be sandboxed (Flatpak), may use a different font backend (TeX, Wine, GRUB), or may simply need its font cache refreshed. Run fc-cache -fv first, then check whether the app uses fontconfig at all.

Should I back up /usr/share/fontconfig?

No. It contains stock configuration snippets shipped by packages and will be recreated on reinstall. Your own tweaks live in ~/.config/fontconfig/fonts.conf, which is the file worth preserving.

How do I find where a specific font file is stored?

Use fc-match -v 'Font Name' and look for the file path in the output. That tells you exactly which directory holds the matching font file.

Can I safely delete fonts from /usr/share/fonts?

Avoid it. Those files belong to packages; deleting them directly leaves the package database inconsistent. Remove package-provided fonts with your package manager instead, and manage personal fonts only in your home directory.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More