Why mv is faster than cp?

Tam ca

New member
Why mv is faster than cp?
Answer
On the same filesystem, ‘mv’ doesn’t actually copy the data,
it just remaps the inode, so it is far faster than cp. Rsync will be slower than cp since, it still needs to copy the entire file – and it has additional overhead (even if minor in this case).
 

Tìm kiếm

Back
Top