coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How is mv done across filesystem?


From: Peng Yu
Subject: How is mv done across filesystem?
Date: Sun, 12 Jan 2014 11:09:03 -0600

Hi,

It seems the following command across filesystem

mv /filesystem1/src /filesystem2/dst

is roughly equivalent to the following. The idea is that no files will
be deleted from the src unless all files are correctly copied to dst.
Is it so?

cp -p -r /filesystem1/src /filesystem2/dst
rm -rf /filesystem2/dst

Does anybody know the exact equivalent commands to mv so that I can
understand what mv does? Thanks.

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]