mv error
I'm trying to move font files (.ttf and .otf) from the download folder to a folder Inkscape can find them in. I tried dragging and dropping them in Dolphin but I don't have permission! So tried in the terminal:
Code:
~$ mv ~/downloads/fonts/*.*tf /usr/share/fonts As far as I can tell the directories exist. Any tips? |
If you can't drop and drop with Dolphin, the mv shouldn't work either. Since you say you don't have permission, then try the mv with sudo. Try 'sudo mv ~/downloads...'.
|
I am still pretty new, but have gotten used to a few good tools.
What I would do in your case is to open mc (midnight commander) as root, and let it move them. Obviously, root can do anything, right? The question remains, why were you denied access? Were the files built with the wrong owner? If you need to, mc can change owner and group. Hmm.. maybe the access you were denied was to /usr/shar/fonts ? (I could not tell from your post if the problem was source or target) In that case mc as root will get the files where you want them. Good luck! |
Thanks for the super fast replies. It looks like I can't paste the files into the /usr/share/fonts directory.
Kubuntu doesn't let you log in as root and I only know how to switch in the console. Even when I do, it still gives me the same error. ~$ sudo mv ~/downloads/fonts/*.ttf /usr/share/fonts [sudo] password for bryan: mv: cannot stat `/home/bryan/downloads/fonts/*.ttf': No such file or directory Starting to get frustrating - I'm working on something I need to get done tonight and off to the printers in the morning... |
@Above.
The destination is not accessible as a normal user. And you can see that OP is trying to move as a normal user. Look at the prompt. su - should make you root temporarily. And as you are using Ubuntu, you can use sudo. OP got here faster. It seems the error is caused by the wild card interpretation. Can you try copying a single file at a time using sudo? |
Can you post the output of:
Code:
$ls -la /home/bryan/downloads/fonts Code:
$id Code:
$sudo mv ~/downloads/fonts/*.*tf /usr/share/fonts |
Hi
I managed to reproduce your error. It happens when you try to move the font files that have already been moved to /usr/share/fonts - hence the No such file or directory error Try doing: Code:
$ls /usr/share/fonts |
I put your command into code tags so that we can see that there is a space between the source and target (good thing).
<<Sorry--this had an error>> Code:
[mherring@Ath ~]$ cd play |
Quote:
~$ ls /usr/share/fonts truetype type1 X11 They are the folders I expected in there. |
Quote:
Code:
~$ ls -la /home/bryan/downloads/fonts |
my post above had a fatal error---I edited with another test.
|
Quote:
Now based on the above ls command - you see that your source directory/files don't exist. Do you know where on the filesystem your font files are located? |
Quote:
I understand what you are saying but I don't understand why its says it doesn't exist: Code:
~$ ls -la /home/bryan |
Code:
drwxr-xr-x 4 bryan bryan 4096 2010-07-15 21:29 Downloads Did altering the case of the Downloads do the trick? A convention I generally try to follow to prevent case issues; is to name directories in all lower case; unless there's a specific reason not to do so. |
Quote:
Thanks for all your help. |
This is just another example of where using a commander format, or a GUI tool,
makes things much easier. When you just click on a name, or drag to it, you can't spell it wrong, can you? ;-) Glad to hear things worked out! |
Quote:
On this particular problem, Dolphin just said that access was denied. I didn't know how to change permissions/user in Dolphin. |
The Linux in general is just case sensitive. That is not too much to ask for. And if you really do not remember names always, you can always use the double tab and it will show you all the files and folders in that particular location.
|
All times are GMT -5. The time now is 01:15 AM. |