using 'mv' instead of 'cp' to transfer directories to other partitions or disks

Aaron Konstam akonstam at sbcglobal.net
Thu Apr 2 13:57:04 UTC 2009


On Wed, 2009-04-01 at 19:42 -0700, jackson byers wrote:
> -----
> my question: isn't it true that use of 'mv' is much faster than 'cp'
> or rsync?
> ie to "copy everything somewhere else"  
> instead
> "mv everything somewhere else"   
> and
> instead of 
> "..and copy back"
> do
> ".. mv back"
mv is faster if you are on the same partition since the data is not
moved just the pointer to the data is changed. If you are using mv to
transfer to a different disk or partition it probably a little slower.
--
=======================================================================
Everything ends badly. Otherwise it wouldn't end.
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam at sbcglobal.net




More information about the users mailing list