Moving (not copying) folders between hdd's

Discussion in 'Mac Pro' started by asykes, Jan 19, 2011.

  1. asykes macrumors newbie

    Joined:
    Jan 19, 2011
    #1
    Does anyone know of a way to have os x move files and folders between two hdd's or partitions on the same machine without making a copy? It's a pain to trash the first file each time and holding command each time, while not a pain, is annoying.


    thanks,
    Adam
     
  2. Vylen macrumors 65816

    Joined:
    Jun 3, 2010
    Location:
    Sydney, Australia
    #2
    Don't think so.

    Either hold down command while dragging... or use Terminal :p (although I guess that's too much effort for you since that involves typing heh)
     
  3. jerry333 macrumors member

    jerry333

    Joined:
    Nov 4, 2005
    #3
    The mv command only works on a single partition, however, you can do it with a few easy commands:

    Become root (not necessary if you are only working on files that you own):
    sudo su -

    To do the copy:
    cd sourcedir ; tar -cf - . | (cd destdir ; tar -xpf -)

    Once the copy has been made (and you've verified it):

    cd sourcedir
    cd ..
    pwd
    rm -r sourcedir
    exit


    Explanation:

    cd .. moves you back up one directory
    pwd displays the directory you're in

    rm -r sourcedir erases sourcedir and all the files underneath sourcedir.
     
  4. asykes thread starter macrumors newbie

    Joined:
    Jan 19, 2011
  5. davids8477 macrumors 6502

    Joined:
    Jan 4, 2008
    #5
    Automator

    There's an AUTOMATOR command to move items. Drop the files onto the Automator App and select their destination.
    Works a treat.
    ;)
     
  6. xgman macrumors 601

    xgman

    Joined:
    Aug 6, 2007

Share This Page