sudo mv syntax. Newbie question

Asked by Ivor

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:
Last query:
Last reply:
Revision history for this message
Best druisan (druisan) said :
#1

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

Revision history for this message
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.

Revision history for this message
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

Revision history for this message
Ivor (ivor) said :
#4

Brilliant, thanks!

Revision history for this message
Ivor (ivor) said :
#5

Thanks ElNota, that solved my question.

Revision history for this message
Ivor (ivor) said :
#6

Thank-you ElNota!