I need to copy all files from **/home/antranig/downloads/fonts to *usr/share/wine/font *
**I did this command in the terminal: **
*antranig@linux-plfp:~> su
**Password: *
***linux-plfp:/home/antranig # *** *cp -r /home/antranig/downloads/fonts usr/share/wine/fonts *
**But the terminal shown this: ***cp: cannot stat ‘/home/antranig/downloads/fonts’: No such file or directory
*Please help me! How can I copy all files to another folder in the terminal?
IMO nrickert is correct to address the immediate issue, but the User is making another couple mistakes…
Unless the console prompt is already at root, the command is missing a leading forward slash in front of “usr”
And, unless I’m mistaken, he’s also copying to the target creating a second fonts directory instead of replacing the target (which I’m pretty certain should be his intention).
So, IMO one of several <correct> ways to do this might be, and I’m using a wildcard just to illustrate it’s use)
Hi
Your missing the leading / in your command, it’s **/**usr/share/wine/fonts else if it doesn’t exist then create it if that’s where you want them to go;
linux-plfp:/home/antranig # cp -ar /home/antranig/downloads/fonts /usr/share/wine/fonts
cp: cannot stat ‘/home/antranig/downloads/fonts’: No such file or directory
I have seen in the wine folder as “Show hidden folders” but there’s no “.fonts” folder.
Wine has fonts in this folder: /usr/share/wine/fonts
I want to use a QUIK program in wine, but it doesn’t show a correct fonts (like this jabberwocks ???՛՛՛՛՛;;;/՛;լլ՛ instead the normal letters). So I decided to copy fonts from Windows Fonts to /usr/share/wine/fonts
If the directory exists and the files don’t copy to it then check permissions something is off there. There are no magic directories they all follow the same rules and regulations set by the permissions.
On Fri 20 Mar 2015 12:56:01 AM CDT, andranique wrote:
gogalthorp;2700552 Wrote:
> If the directory exists and the files don’t copy to it then check
> permissions something is off there. There are no magic directories
> they all follow the same rules and regulations set by the permissions.
Bro, please help me to do that. How to check, fix…?
Note the * (wildcard) and the trailing / after the target directory.
Just use the -r so it will change permissions to root:root.
–
Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.38-44-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
>
> malcolmlewis;2700529 Wrote:
>> Hi
>> Your missing the leading / in your command, it’s */*usr/share/wine/fonts
>> else if it doesn’t exist then create it if that’s where you want them to
>> go;
>> >
> Code:
> --------------------
> > >
> > mkdir -p /usr/share/wine/fonts
> >
> --------------------
>> >
>
>
>
> Code:
> --------------------
> linux-plfp:/home/antranig # cp -ar /home/antranig/downloads/fonts
> /usr/share/wine/fonts
> cp: cannot stat ‘/home/antranig/downloads/fonts’: No such file or
> directory
>
>
>
> --------------------
>
>
> Can’t copy the folder
>
>
Try /home/antranig/Downloads/fonts
note the capital D
The errors generated with these tries indicates that the problem is with your source location, not target destination.
You probably have a problem with camel case (capitalizations).
To resolve:
First determine exactly how your “Fonts/fonts” (or however) is really named…
ls /home/antranig
Note how the word “fonts” is spelled with capitalizations. My guess is it’s “Fonts” with a capitalization.
Now, execute the command with the proper capitalizations, my guess is the following will work
Note however that the above command will copy your fonts to a wine folder with a a Fonts folder (also capitalized) and that can be an issue if it’s not supposed to be capitalized. If you need to fix that, then the following is one way to do it… The following is a combo command that first creates your destination folder uncapitalized, then copies the contents of your existing ~/Downloads/Fonts/ folder to the destination folder just created.