Re: [問題]mv指令取消後原始檔案的資料還是完整的嗎?
根據
$ 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處,而有所缺少囉?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.36.172.79
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):