Re: [問題]mv指令取消後原始檔案的資料還是完整的嗎?

看板Linux作者 (拋磚引玉)時間15年前 (2010/12/20 00:09), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
根據 $ 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
文章代碼(AID): #1D3YvI3e (Linux)
文章代碼(AID): #1D3YvI3e (Linux)