當資料從回收站中刪除時會發生什麼?

大多數情況下,除了知道已刪除的檔案已經不在我們的視線之外,我們很少會想到已刪除的檔案,但當我們刪除這些檔案時,這些檔案會發生什麼呢?今天的超級使用者問答帖子回答了一位好奇的讀者關於刪除過程的問題。...

當資料從回收站中刪除時會發生什麼?

大多數情況下,除了知道已刪除的檔案已經不在我們的視線之外,我們很少會想到已刪除的檔案,但當我們刪除這些檔案時,這些檔案會發生什麼呢?今天的超級使用者問答帖子回答了一位好奇的讀者關於刪除過程的問題。

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。

照片由傑拉德的世界(Flickr)提供。

問題

超級使用者讀者Shea A.想知道計算機上刪除的檔案會發生什麼情況:

Correct me if I am wrong here, but when you delete something from your PC, all your computer does is write over some of the binary with 0’s replacing the 1’s (or something to that effect). So when you send something to the Recycle Bin, it writes over part of the file, then when you delete the file from the Recycle Bin, it writes more?

整個檔案刪除和回收站過程是如何工作的?

答案

超級使用者貢獻者Boann和Mary Biggs為我們提供了答案。首先,博恩:

Neither operation writes over the file. Moving a file to the Recycle Bin does just that, moves the file. Its contents are left completely intact.

Deleting a file from the Recycle Bin (or deleting it directly using Shift+Delete) removes the file name entry from the folder. The part of the disk previously occupied by the file is not modified or overwritten and still contains the file data, but that data is no longer linked to a file name. That spot on the disk is recorded as “free”, however, so future writes to the disk can reuse that space, and if you keep using the disk, the space will almost certainly be overwritten eventually.

In a case where you need to prevent recovery of deleted data, special tools exist to overwrite the data securely. That is not done by default because it is slow and increases wear on the disk.

接著是瑪麗·比格斯的回答:

A file is in two parts:

  • A directory entry which records the file name and also contains a list of the blocks on disk which contain the data contents of the file. The operating system then “knows” that these blocks are in use.
  • The actual blocks which contain the data contents of the file.

When a file is deleted:

  • The list of blocks in the directory entry are marked as “free” and returned to the operating system. The directory entry is deleted, so the file “disappears” from the file system.
  • The actual blocks are not touched, so the data contents of the file remain untouched until some other new file overwrites them. This is the reason that file recovery software can often rebuild deleted files (but only if it is used soon after deletion).

有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

  • 發表於 2021-04-11 06:22
  • 閱讀 ( 27 )
  • 分類:網際網路

你可能感興趣的文章

如何從google我的企業列表中刪除企業

...閉業務列表,而不是將其刪除。這樣做仍然會保留以前的資料。如果你想的話,你可以稍後再開啟它。 如果您不再在特定位置管理帳戶,您可以交換業務所有權,而不是完全刪除它。 如果你只是改...

  • 發佈於 2021-03-10 22:18
  • 閲讀 ( 48 )

你的instagram賬戶如何被駭客入侵以及如何阻止

... 那麼欺詐者如何侵入你的Instagram個人資料呢?這種情況的後果是什麼?你能做些什麼來保護你的Instagram帳戶? ...

  • 發佈於 2021-03-11 10:50
  • 閲讀 ( 62 )

SSD真的可以安全地刪除您的資料嗎?下面是方法

...是一個多階段的過程。第一次刪除檔案時,它只會移動到回收站(或垃圾箱)。檔案內容保持不變。這允許我們恢復意外刪除的檔案。 ...

  • 發佈於 2021-03-11 19:03
  • 閲讀 ( 48 )

如何刪除xbox one和xbox 360上的個人資料

您需要刪除Xbox One或Xbox 360上的個人資料嗎?也許你以前和朋友或兄弟姐妹共用一臺遊戲機,或者你不再需要你的舊帳戶了。無論哪種方式,刪除一個配置檔案都可以。 ...

  • 發佈於 2021-03-11 21:29
  • 閲讀 ( 50 )

7個你永遠無法理解的windows謎團

...敗的檔案在真正被刪除之前有兩個步驟。假設你沒有禁用回收站,刪除一個檔案會先把它傳送到那裡。在檔案進入回收站後的任何時候,您都可以輕鬆地開啟它並單擊“還原檔案”將其取回。 ...

  • 發佈於 2021-03-14 02:33
  • 閲讀 ( 68 )

如何判斷是否有人在snapchat上阻止了你

... 你的另一個選擇是點選聯絡人的個人資料。如果你能看到他們的Snapchat分數(下面是如何提高你的Snapchat分數),你還沒有被刪除。 ...

  • 發佈於 2021-03-17 22:04
  • 閲讀 ( 48 )

當時光機備份被扔進垃圾箱時該怎麼辦

... 如果你覺得這很有用,請檢視macOS資料夾,你永遠不應該弄亂,為什麼。 ...

  • 發佈於 2021-03-19 02:29
  • 閲讀 ( 64 )

當你退出社交媒體時會發生什麼?6我學到的東西

...體俚語上不及時更新,等於錯過了對話中所有有趣的參考資料。很多時候,你不會被笑話,因為“你必須在那裡”。你還必須輸入請求才能加入其他的社交網路,通常是晦澀難懂的。 ...

  • 發佈於 2021-03-22 10:51
  • 閲讀 ( 54 )

當您清除tiktok上的快取時會發生什麼?

... 這種便利得益於快取資料,包括TikTok在內的所有智慧**應用都儲存了快取資料。 ...

  • 發佈於 2021-03-26 21:38
  • 閲讀 ( 49 )

如何在mac上解除安裝flash

... 開啟Finder視窗並訪問Applicati***資料夾。 開啟實用程式資料夾。 你會發現一個應用程式,上面寫著adobeflashplayer安裝管理器。雙擊此檔案以啟動它。 單擊下面...

  • 發佈於 2021-03-27 04:29
  • 閲讀 ( 43 )
dc601609
dc601609

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦