Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

asykes

macrumors newbie
Original poster
Jan 19, 2011
4
0
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
 
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)
 
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.
 
Automator

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

There's an AUTOMATOR command to move items. Drop the files onto the Automator App and select their destination.
Works a treat.
;)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.