LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Copying files from Windows to Linux (https://www.linuxquestions.org/questions/linux-newbie-8/copying-files-from-windows-to-linux-504542/)

Kmann 11-24-2006 01:24 PM

Copying files from Windows to Linux
 
I have two hard drives, the 40g is windows and the 200g is Linux.
I want to copy several avi's to the linux hard drive

the C drive is all ready mounted, so i su to root and go to
/cdrvie/Documents and Settings/User/Desktop/MyAVI files

then i try
Code:

cp /cdrvie/Documents and Settings/User/Desktop/MyAVI files /home/user/
it copies but when i try viewing the file it doesn't work, idicating that the copy inst working

i try cp the entire folder but i get some error, something about omitting.

I am pretty new to Linux, some help would be appreciated.

Thanks in advance

Tinkster 11-24-2006 01:39 PM

Hi,

And welcome to LQ!

Your problem is the "space" in the directory-name. Just quote it, and you'll
be fine.
Code:

cp "/cdrvie/Documents and Settings/User/Desktop/MyAVI files/*" /home/user/target-dir

Cheers,
Tink

Kmann 11-24-2006 01:49 PM

Problem solved, thanks for the help :)

Wasn't the space, guess when you move it as root you can only play it as root..

Thanks again

mcmillan 11-24-2006 02:19 PM

Not sure if you've already figured this out, but if you want to be able to play it as your regular user you can change permissions on the files. The command chmod is used to modify permissions, chown would also be useful to change it so your regular user is the owner. Type man chmod or man chown into a terminal to get more info about these.


All times are GMT -5. The time now is 01:28 PM.