how do I move all files/directory?

Discussion in 'General Mac Discussion' started by chrislee8, Aug 13, 2004.

  1. macrumors regular

    Joined:
    Jul 26, 2004
    Location:
    NY, NY
    #1
    1. how do I move all files because mv has only -f/i option?

    2. how do I move directory from one place to another ?

    3. how do I move everything from one place to another?

    seems like mv can only do moving files, not folders.

    thanks in advanced.
     
  2. thread starter macrumors regular

    Joined:
    Jul 26, 2004
    Location:
    NY, NY
    #2
    ok, I found out for question 1: mv *.* src dest will move all files.

    2, and 3 still remain. :)
     
  3. jsw
    Moderator emeritus

    jsw

    Joined:
    Mar 16, 2004
    Location:
    Andover, MA
    #3
    If I have folder X, and I want to rename it to folder Y, I just type:
    Code:
    mv X Y
    If I have folder X and I want to move it into folder Y, I type:
    Code:
    mv X Y/X
    Does that help?

    Or, to be more clear: type

    Code:
    mv full_path_of_folder new_full_path_of_folder
    Remember, if you just type 'mv X Y', you'll rename X into Y, not put X inside of Y.

    By the way, this moves folder contents as well.
     

Share This Page