Find the answer to your Linux question:
Results 1 to 3 of 3
I want to move all the files from my USB-drive to my hard drive. The subdirectories should be copied also containing all the data I tried: mv /mnt/usb/data/guido/* -T -v ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    6

    moving files using the CLI


    I want to move all the files from my USB-drive to my hard drive. The subdirectories should be copied also containing all the data

    I tried:
    mv /mnt/usb/data/guido/* -T -v /mnt/guido

    What is going wrong?

  2. #2
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Check the man pages for mv command, you can figure this out, you're almost there.
    Code:
    man mv
    Pay special attention to the -r option.
    Last edited by MikeTbob; 07-16-2011 at 09:36 PM. Reason: Typos
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  3. #3
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,025
    mv mv /mnt/usb/data/guido/* -T -v /mnt/guido -T -v /mnt/guido
    Are you trying to move your files to another mounted drive? Or are you wanting to move them to your home directory?

    If the latter, you should try
    Code:
    mv /mnt/usb/data/guido/* /your/target/directory
    Of course replacing /your/target/directory with the actual name.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  4. $spacer_open
    $spacer_close

Posting Permissions

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