linux - mv command creates directories -


I am facing a very strange problem, for example, I have these directories "/ ten" and "/ a / Two / three / four "I have some files in these directories i when i execute the following command

  mv / ten / / one / two / three / four / five / six  

This returns output as mv: '/ ten /' to '/ one / two / three / four / five / six' can not be transferred: such a File or free Not the case that looks fine because this directory does not create

But if I execute the following command

  mv / one / two / three / four / / one / Two / five / six  

Directories were created within five / six / one / two i.e. the MV command is successful.

Can anyone please explain what is happening here?

Edit: Further Overview ..

Documents / one / two / three / four directories also exist / one / two / five are present MV / A / Two / three / four / / one / two / five / six / will be executed. The directory here will be made six, even if it is not present.
It does not happen when I execute mv / one / two / three / four / one / two / five / six and the "five" directory does not exist. In this case, this will give the error.

I thought mv would never make a directory.

Please tell me that I have nothing clear.

You are either executing another mv binary, Mv ,

to know if you are actually running the actual mv , run

  Type MV  

should meet you

  mv / bin / mv  

You can also add -a to more information in:

  Type -A MV  

UPDATE

Director Prints / one / two / three / four directories are present / one / two / five present will be successful in implementing MV / one / two / three / four / / one / two / five / six. The directory here will be made six, though it does not exist. This is not the case when I execute MV / A / two / three / four / one / two / five / six and the "Five" directory does not exist. In this case, this error will be made.

Since / one / two / five exists, just type it in your directory / one / two / three / four In / one / two / five / six . This means that / one / two / five / six> is now the new name or pathname of the directory that was previously / one / two / three / four .


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -