CLI Syntax help - how to move a file???

Asked by Dave Haring

This drive me crazy! How to move file?

I try but its not the same

File is on Desktop and directory exist. Something missing? Thanks!!!

h4ck@h4ck-G73Sw:/$ sudo mv /home/h4ck/Desktop/arrow.scm /home/h4ck/usr/share/gimp/2.0/scripts
mv: cannot move `/home/h4ck/Desktop/arrow.scm' to `/home/h4ck/usr/share/gimp/2.0/scripts': No such file or directory

Question information

English Edit question
Ubuntu coreutils Edit question
No assignee Edit question
Solved by:
Manfred Hampl
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :

I would say that the syntax of the move (mv) command is correct.

As the error message says either the file /home/h4ck/Desktop/arrow.scm does not exist
or the directory /home/h4ck/usr/share/gimp/2.0/scripts does not exist

Please try the following commands in a terminal:

ls /home/h4ck/Desktop/arrow.scm
ls /home/h4ck
ls /home/h4ck/usr
ls /home/h4ck/usr/share
ls /home/h4ck/usr/share/gimp
ls /home/h4ck/usr/share/gimp/2.0
ls /home/h4ck/usr/share/gimp/2.0/scripts

If the problem is with a missing target directoty you could try

mkdir -p -v /home/h4ck/usr/share/gimp/2.0/scripts

Revision history for this message
Dave Haring (4trade) said :

Yes!!! Problem was my error. Your advice to enter "ls" commands help me to find it. Thanks very much! Correct syntax was:

h4ck@h4ck-G73Sw:/$ sudo mv /home/h4ck/Desktop/arrow.scm /usr/share/gimp/2.0/scripts

Revision history for this message
Dave Haring (4trade) said :

Thanks Manfred Hampl, that solved my question.