Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a folder called grey on my desktop. I want to either copy or move it to usr/share/audacious/skins and it keeps telling me there is no such file or directory. It's there, on the desktop, why does it keep telling me it's not.

I tried this:

noyfb@noyfb-Latitude-D630:~$ sudo cp home/noyfb/desktop/Grey usr/share/audacious/Grey
[sudo] password for noyfb: 
cp: cannot stat `home/noyfb/desktop/Grey': No such file or directory

then this

noyfb@noyfb-Latitude-D630:~$ sudo cp /home/noyfb/desktop/Grey /usr/share/audacious/Grey
cp: cannot stat `/home/noyfb/desktop/Grey': No such file or directory

then this

noyfb@noyfb-Latitude-D630:~$ sudo mv /home/noyfb/desktop/Grey /usr/share/audacious/Skins/Grey
mv: cannot stat `/home/noyfb/grey': No such file or directory

Anyone know what I'm doing wrong?

share|improve this question
1  
Please edit your question and add output of command ls -l /home/noyfb/Desktop. –  Danatela Mar 28 at 4:08
1  
linux commands are case-sensitive. –  Avinash Raj Mar 28 at 4:10
    
@ Avinash Raj - Thanks I didn't realize the commands are case-sensitive. –  NYB Mar 28 at 14:18
    
@ Danatela - Sorry I don't understand what that means. –  NYB Mar 28 at 14:20
add comment

2 Answers 2

up vote 2 down vote accepted

Linux files and folders name are case-sensitive. As souravc suggested, the name of the desktop folder is Desktop, not desktop. So you should be doing:

sudo cp /home/noyfb/Desktop/Grey /usr/share/audacious/Skins/ -r

Note the -r in the command, it is used when you want to recursively copy files. This is needed since you say, Grey is a directory, you can omit -r, when the source is not a directory. Also check if your folder name is Grey or grey.

share|improve this answer
    
Thanks for explaining the -r –  NYB Mar 28 at 14:11
    
@NYB: Glad it helped you. –  i08in Mar 28 at 14:24
add comment

Check desktop is a typo. It should be Desktop. Try to copy as

sudo cp -r /home/noyfb/Desktop/Grey /usr/share/audacious/Skins/

or to move

sudo mv /home/noyfb/Desktop/Grey /usr/share/audacious/Skins/

Also check, the folder is grey or Grey. You mentioned it differently in your question.

-r is necessary, thanks to @jobin.

share|improve this answer
    
Thanks a lot for that, it worked. I didn't realize it was case sensitive. –  NYB Mar 28 at 14:10
    
you may accept one of the answers at your convenience, it will indicate your problem is solved. read this also –  souravc Mar 28 at 14:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.