mv指令取消後原始檔案的資料還是完整的嗎? - Linux

By David
at 2010-12-20T00:09
at 2010-12-20T00:09
Table of Contents
根據
$ info coreutils 'mv invocation'
...
It first uses some of the same code that's used by `cp -a'
to copy the requested directories and files, then (assuming the copy
succeeded) it removes the originals. If the copy fails, then the part
that was copied to the destination partition is removed. If you were
to copy three directories from one partition to another and the copy of
the first directory succeeded, but the second didn't, the first would
be left on the destination partition and the second and third would be
left on the original partition.
...
看起來是有搬成功的那部份會被移除掉
※ 引述《BLUBLU (the sight of the eyes)》之銘言:
: 請問ㄧ下
: 當我想用mv指令將資料從 A 搬到 B
: 指令執行到途中才想到硬碟空間可能會有問題
: 這時我按了 Ctrl + C
: 這時候原本在A處的原始資料
: 應該還是完整的吧 !
: 所以A不會因有部分搬到B處,而有所缺少囉?
--
$ info coreutils 'mv invocation'
...
It first uses some of the same code that's used by `cp -a'
to copy the requested directories and files, then (assuming the copy
succeeded) it removes the originals. If the copy fails, then the part
that was copied to the destination partition is removed. If you were
to copy three directories from one partition to another and the copy of
the first directory succeeded, but the second didn't, the first would
be left on the destination partition and the second and third would be
left on the original partition.
...
看起來是有搬成功的那部份會被移除掉
※ 引述《BLUBLU (the sight of the eyes)》之銘言:
: 請問ㄧ下
: 當我想用mv指令將資料從 A 搬到 B
: 指令執行到途中才想到硬碟空間可能會有問題
: 這時我按了 Ctrl + C
: 這時候原本在A處的原始資料
: 應該還是完整的吧 !
: 所以A不會因有部分搬到B處,而有所缺少囉?
--
Tags:
Linux
All Comments
Related Posts
剛剛電腦的IO暴增

By Yedda
at 2010-12-19T21:44
at 2010-12-19T21:44
OpenVPN可以事後多加Client嗎?

By Agatha
at 2010-12-19T21:40
at 2010-12-19T21:40
(大驚) Mandriva 2010.2 ?

By Emily
at 2010-12-19T08:49
at 2010-12-19T08:49
如何取得執行中process與thread數量

By Jacky
at 2010-12-19T01:06
at 2010-12-19T01:06
如何讓server的螢幕關閉電源?

By Candice
at 2010-12-19T00:40
at 2010-12-19T00:40