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

David avatar
By David
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處,而有所缺少囉?

--
Tags: Linux

All Comments

剛剛電腦的IO暴增

Yedda avatar
By Yedda
at 2010-12-19T21:44
如標題, 現在已經正常了, 可是沒弄清楚發生了什麼事,心裡會毛毛的 當時的症狀:做任何事都會頓,直覺就是I/O暴表.... 我用: (ubuntu 10.04 desktop) netstat 沒看到我不認得的東西 tcpdump 沒有什麼奇怪的流量 cron,at 沒有跑東西 top 沒有 ...

OpenVPN可以事後多加Client嗎?

Agatha avatar
By Agatha
at 2010-12-19T21:40
※ [本文轉錄自 EZsoft 看板 #1D2Yt8lJ ] 作者: LIAR (會DOS不代表會LINUX) 看板: EZsoft 標題: [請問] OpenVPN可以事後多加Client嗎? 時間: Thu Dec 16 23:18:29 2010 我在HOW-TO是有看到certificate re ...

(大驚) Mandriva 2010.2 ?

Emily avatar
By Emily
at 2010-12-19T08:49
※ 引述《jtmh (andgt;andlt;)》之銘言: :   下午我的系統出現了更新的提示, :   點進去看似乎是 2010.2 的更新, :   但是 /usr/share/doc/mandriva-release-common/release-notes.txt :   這個檔案還是舊 (2010 ...

如何取得執行中process與thread數量

Jacky avatar
By Jacky
at 2010-12-19T01:06
大家好 最近在用Linux實做多網路介面的router(gateway) 免不了要做一些系統狀況統計 目前已經用MRTG做出各網路卡流量、CPU負載、記憶體與虛擬記憶體使用量等圖表 想再做一項統計process數目與thread的圖表以進一步了解系統負載狀況 想請問用什麼方式取得這兩個數值比較好呢 謝謝 ...

如何讓server的螢幕關閉電源?

Candice avatar
By Candice
at 2010-12-19T00:40
我灌了一部Ubuntu Server 只跑 text console 發現這部主機的螢幕會一整天都在亮 就算很久一段時間沒動 畫面只是變黑 並沒有關閉螢幕電源 像這種當server用的主機 希望設定一段時間之後 能自動關閉螢幕電源 該怎麼做? - ...