Find the answer to your Linux question:
Results 1 to 7 of 7
I am not being able of moving these two files, currently on /mnt, to my /mnt/arquivos directory. It's a problem with the name of the two files, because when I ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2005
    Posts
    13

    Problem moving two files with MV


    I am not being able of moving these two files, currently on /mnt, to my /mnt/arquivos directory. It's a problem with the name of the two files, because when I save them as "a.html" and "a_files", it work like a charm. However, when I save the files with their intended names, this happens.

    Code:
     mv The\ BalusC\ Server\ \|\ Hardware\ \|\ CPU\ Types\ \|\ Intel\ \|\ Itanium_files/ The\ BalusC\ Server\ \|\ Hardware\ \|\ CPU\ Types\ \|\ Intel\ \|\ Itanium.html arquivos/
    mv: cannot create directory `arquivos/The BalusC Server | Hardware | CPU Types | Intel | Itanium_files': Invalid argument
    mv: cannot create regular file `arquivos/The BalusC Server | Hardware | CPU Types | Intel | Itanium.html': Invalid argument

    I used autocomplete, so I cannot imagine what's going wrong.
    Thanks for the input.

  2. #2
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    Put quotes around it. So quote tab for autocomplete end quote.

  3. #3
    Just Joined!
    Join Date
    Aug 2005
    Posts
    13
    I tried this way, opened the quote, typed the first letter and then used the autocomplete feature, that already placed the ending quote in the end of the file. Finally, I typed the destination directory and this happened:

    Code:
    [root@c925acac mnt]# mv "The BalusC Server | Hardware | CPU Types | Intel | Itanium_files"/ arquivos/
    mv: cannot create directory `arquivos/The BalusC Server | Hardware | CPU Types | Intel | Itanium_files': Invalid argument

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    The quotes end before arquivos.

  6. #5
    Just Joined!
    Join Date
    Aug 2005
    Posts
    13
    But I am putting the quotes before the "arquivos" directory. I open the quote, type the first letter, and then I let mv to do the work and he already close the quote for me, then I type the destination directory.

  7. #6
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    Alright so you want the long filenamed folder to be inside of arquivos? Or do you want that to be renamed to arquivos?

  8. #7
    Just Joined!
    Join Date
    Aug 2005
    Posts
    13
    Sorry for only being able to reply now, I had problems with my internet connection and some other things.

    Yes. I wanted the long filenamed folder to be inside of arquivos, and by now I already identified the problem. I can move the folder to any place that I want to, except to "arquivos" or any of its subfolders. The only reason for this has to be that "arquivos" is the folder that represents the windows partition. So I am moving a file from a Ext3 partition to vfat.
    Anyone has some kind of experience with that ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •