sudo mv syntax. Newbie question

Asked by Ivor on 2010-11-26

Hi, I have been trying to get this right for about an hour - I am sure I am typing something incorrectly. I am trying to move the file 10-aiptek.conf from the desktop into ur/share/x11 folder.

ivor@compaq:~$ sudo mv `/home/ivor/Desktop/10-aiptek.conf' `usr/share/x11'>

All I get when I type the above is
>

and the file does not move.

Is this the only way of moving the file. I tried drag and drop but was denied because I didn't have permission.

Please help me!
Thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Solved by:
druisan
Solved:
2010-11-26
Last query:
2010-11-26
Last reply:
2010-11-26
Best druisan (druisan) said : #1

Try this; << sudo mv /home/ivor/Desktop/10-aiptek.conf usr/share/x11 >> (Without '<' and '>')

Ivor (ivor) said : #2

ivor@compaq:~$ sudo mv /home/ivor/Desktop/10-aiptek.conf usr/share/x11
mv: cannot move `/home/ivor/Desktop/10-aiptek.conf' to `usr/share/x11': No such file or directory

The file 10-aiptek.conf is definitely on my desktop and the x11 folder exists.

mycae (mycae) said : #3

you missed a leading "/" to convert from a relative to an absolute filename

sudo mv /home/ivor/Desktop/10-aiptek.conf /usr/share/x11

Ivor (ivor) said : #4

Brilliant, thanks!

Ivor (ivor) said : #5

Thanks ElNota, that solved my question.

Ivor (ivor) said : #6

Thank-you ElNota!