I downloaded and am trying to install a Nerd Font, called Meslo, onto my system and following https://wiki.archlinux.org/title/Fonts used mkdir -p /usr/share/local/fonts which successfully created the directory and because it’s a root directory I couldn’t use Thunar to move the font into that directory so I tried to use the mv command and found various pages including the man page that says the syntax is mv [OPTIONS] SOURCE... DIRECTORY.
But none of these work. I then thought maybe I don’t have the right file permissions but using ls -l inside the directory outputs drwxr-xr-x 2 root root 4096 Jan 8 23:49 fonts which I think means there is read, write and execute rights according to https://wiki.archlinux.org/title/File_permissions_and_attributes
I have tried searching online but all the ones I could find only talk about getting this error when using the command through a script and it works when they type it out in terminal.
I am aware that I can just slap the font into ~/.local/share/fonts/ and call it a day but I want to learn why this isn’t working.
Have no idea if my desktop environment matters but I am using XFCE.
Why not using cp (copy)? cp /home/tc/Downloads/Meslo/* /usr/share/local/fonts/
Notice the asterisk (it means: everything in that directory)
Copy the fonts where to you want them, then adjust permissions for the directory and it’s contents.
It should be the same with mv (move) - you want to move the contents of the directory, not the directory.
or: mv /home/tc/Downloads/Meslo /usr/share/local/fonts/
(without the slash at the end of the source directory … that should move the directory “Meslo” along with it’s content)
I was following reading the https://ohmyposh.dev/docs/installation/fonts and downloaded the zip from the link and figured mv it to the directory won’t be hard and will be a chance to use a command I rarely use.