Find the answer to your Linux question:
Results 1 to 5 of 5

Thread: Moving Files

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Moving Files

    I know that this question is lame, but I can't figure out what I am doing wrong...

    I have a bunch of directories that contain images and other directories in the following path: /data/images/mspl06img

    I want to move the files and directories in /mspl06img one directory down the path to: /data/images

    I thought the following would accomplish this (logged in as root):
    #mv -v /data/images/mspl06img /data/images

    however I receive the following error:
    mv: can't stat source /data/images/mspl06img

    Can someone please tell me what I am doing wrong?

    Jason Hotchkiss
    Linux Newbee

  2. #2
    Linux Engineer
    Join Date
    Jan 2003
    Lebanon, pa
    mv /data/images/mspl06img/* /data/images/

  3. #3


    It worked, thanks so much for your help -- bet that was an easy one for ya

    -Jason Hotchkiss

  4. $spacer_open
  5. #4
    Linux Guru
    Join Date
    Oct 2001
    Täby, Sweden
    It's quite simple, really. Your command "mv -v /data/images/mspl06img /data/images" specified to move the directory /data/images/mspl06img itself to /data/images, which can't be done since it was already there. By specifying /data/iamges/mspl06img/*, you choose to move the actual files in the directory instead.

  6. #5


    Not exactly, my true problem was that I did not have an MSPL06img directory in the Images directory. The directory was at the same level. So I have to change the mv command to:

    mv /data/mspl06img/* /data/images

    And though it might be quite simple for you, there are those of us out there who it is not quite simple for at least in the beginning. Thanks for your input though.


Posting Permissions

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