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/ 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 |
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 |
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 |
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. |