windows回收站究竟是如何工作的?

你在Windows中刪除一個檔案,它會被扔進回收站,然後你再把它撈出來。在整個過程中到底發生了什麼?...

windows回收站究竟是如何工作的?

你在Windows中刪除一個檔案,它會被扔進回收站,然後你再把它撈出來。在整個過程中到底發生了什麼?

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

問題

超級使用者讀者Jonath0n對回收站很好奇:

What does the Recycle Bin in Windows actually do? Is it just a glorified folder and a holding place for soon to be deleted files, or does it do something specific? Specifically, are files that are “moved” to the Recycle Bin actually moved on the hard disc, or are just the pointers to the files moved? I am a fairly experienced user, I just wanted a more depth explanation of the Recycle Bin.

那是怎麼回事?回收站究竟是如何作為一種檔案煉獄的?

答案

超級使用者貢獻者Tim Wij**an提供了一個幕後的高峰:

The reference is removed, a metadata file is kept in the Recycle Bin to know the original location.

In the early days, on Windows 95 and 98 this was located in \RECYCLED. On Windows 2000 and later it was renamed to \RECYCLER. Since Windows Vista it is now a special folder called \$Recycle.Bin.

Use Process Monitor to see the I/O under the hood, put a filter on Recycle.Bin and visit it. :)

For example, when I do this:

notepad \$RECYCLE.BIN\S-1-5-21-0192837465-987654321-0123456789-1000\$EXAMPL5

Note: The long folder name is a User SID. The last folder name is a hash based on the metadata.

I get a file that contains metadata information like this:

Ö¸ÌC : \ P a t h \ T o \ S o m e \ E x a m p l e . t x t

The reason that the file path has spaces in between is because it is stored in wide byte chars, to support special characters for certain languages as well as unicode and what else. The earlier symbols are binary and contain information like the file size and permissi***, as well as a pointer to the file data. In essence, it contains enough information to rec***truct the original reference…

It’s sad that the Windows Internals book doesn’t cover this, or else I would’ve had more reference. I haven’t found any articles that go into detail on this, neither by Microsoft or by third party people. They probably do exist but I found it easier to go and reverse engineer the main concept…


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

 

  • 發表於 2021-04-11 17:54
  • 閱讀 ( 55 )
  • 分類:網際網路

你可能感興趣的文章

如何在Windows10中恢復丟失的回收站

“回收站”圖示是您在Windows桌面上的第二個機會。但有時它會從桌面上消失。這使得恢復刪除的檔案甚至清空垃圾檔案變得困難。 ...

  • 發佈於 2021-03-24 22:22
  • 閲讀 ( 82 )

7種快速簡便的方法來恢復丟失的windows功能

... 還原回收站 ...

  • 發佈於 2021-03-29 04:04
  • 閲讀 ( 94 )

windows 10的新更新將再次刪除使用者的檔案

微軟上週釋出了一個有缺陷的Windows10安全更新。某些Windows使用者報告其桌面上的所有檔案都已刪除。以下是您需要知道的所有資訊,包括如何修復錯誤並取回檔案。 謝天謝地,這些檔案實際上並沒有被刪除。更新剛剛將它們移...

  • 發佈於 2021-04-02 15:31
  • 閲讀 ( 54 )

微軟為什麼不放棄cortana呢?

...馬遜售出970萬臺Echo裝置。伊克斯。 那麼誰用Cortana?每臺Windows10電腦的開始按鈕旁邊都有一個大的Cortana框。微軟表示,超過1.5億人使用Cortana,但目前尚不清楚這些人究竟是將Cortana用作語音助手,還是僅僅使用Cortana框在Windows10...

  • 發佈於 2021-04-04 03:36
  • 閲讀 ( 46 )

如何在Windows10中更改回收站設定

任何時候你在Windows中刪除一些東西,它都會進入回收站。它一直放在那裡,直到回收站達到預先配置的最大大小(或者直到你清空回收站),這時Windows會刪除回收站中最舊的檔案,為新檔案騰出空間。這使您有機會在刪除的檔...

  • 發佈於 2021-04-04 09:09
  • 閲讀 ( 41 )

windows頁面檔案的最大大小是多少?

...己電腦上檔案大小之前,究竟是好奇還是真正需要知道,Windows頁面檔案究竟能有多大?今天的超級使用者問答文章對一個好奇的讀者的問題有了答案。 今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一...

  • 發佈於 2021-04-07 20:10
  • 閲讀 ( 36 )

windows readyboost值得使用嗎?

將隨身碟連線到Windows計算機(即使在Windows 8上),Windows會詢問您是否要使用ReadyBoost加速系統。但ReadyBoost究竟是什麼,它是否真的會加速你的電腦呢? ReadyBoost是在windowsvista中引入的,在windowsvista中,它是一個高度提升的功能...

  • 發佈於 2021-04-09 02:38
  • 閲讀 ( 40 )

“砌磚”是什麼意思?

...電和工作。 磚砌裝置不能用正常方法固定。例如,如果Windows無法在您的計算機上啟動,您的計算機就不會“阻塞”,因為您仍然可以在其上安裝另一個作業系統。但是,如果您試圖開啟計算機電源,但它根本無**常工作,因此...

  • 發佈於 2021-04-09 02:46
  • 閲讀 ( 62 )

電腦清洗應用程式是一個騙局:以下是原因(以及如何加速你的電腦)

...們。 如果你真的想“清潔你的電腦”,你可以免費做。Windows包括內建的電腦清潔工具,可以做幾乎所有的一般電腦清潔應用程式將為你做的。 讓我們來調查一個電腦清洗應用程式 那麼這些應用程式到底是做什麼的呢?為了調...

  • 發佈於 2021-04-09 15:36
  • 閲讀 ( 45 )

windows如何知道程式沒有響應?

任何使用過Windows的人都會偶爾看到一條系統訊息,指出某個程式沒有響應,但Windows究竟是怎麼知道的呢?今天的超級使用者問答帖子回答了一位困惑的讀者的問題。 今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一...

  • 發佈於 2021-04-10 06:49
  • 閲讀 ( 36 )
pbkm722603
pbkm722603

0 篇文章

作家榜

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

相關推薦