DEV Community

Thiago Massari Guedes
Thiago Massari Guedes

Posted on

27

Installing a Nerd Font in Ubuntu

This is a simple step-by-step guide to install nerd fonts in Ubuntu

Downloading

Download the font you want from Nerd Fonts website
https://www.nerdfonts.com/font-downloads

Unzip the file downloaded

Replace UbuntuMono.zip with the font you just downloaded

filename=UbuntuMono.zip
extension="${filename##*.}"
filename="${filename%.*}"
mkdir ${filename} && pushd ${filename}
unzip ../${filename}.${extension}
popd
Enter fullscreen mode Exit fullscreen mode

Moving to the correct location and update font cache

Now, let's create a .fonts directory and move the new font there

mkdir -p ~/.fonts
mv ${filename} ~/.fonts/
Enter fullscreen mode Exit fullscreen mode

Last, but not least, we need to update Ubuntu's font cache

fc-cache -fv
Enter fullscreen mode Exit fullscreen mode

You should now be able to see have the font available.

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay