Install fonts Ubuntu (Command Line)

Hi there, when you need to install a lot of fonts it’s easier to do so through the terminal to do so just follow the next steps.

1. Create a dedicated folder to store the fonts in the shared font folder to make it more organized.
sudo mkdir /usr/share/fonts/truetype/[YOUR_FOLDER_NAME]

2. Copy all the fonts into this directory
sudo cp ~/Downloads/*.ttf /usr/share/fonts/truetype/[YOUR_FOLDER_NAME]

3. Make sure to set the permissions of the files to 755
sudo chmod 755 /usr/share/fonts/truetype/[YOUR_FOLDER_NAME]/*.ttf

4. Update the fonts cache with the command
fc-cache

That’s all that you need.

Leave a comment