Correct option is D
The correct answer is (d) The file is moved to a special directory, and its directory entry is updated, but the data remains on the storage device.
When a file is moved to the 'Trash' or 'Recycle Bin', it is not permanently deleted from the storage device immediately.
The file’s metadata (directory entry) is updated to reflect that it is in a special location (the Trash or Recycle Bin), and the file is no longer accessible via its original directory. However, the actual data remains on the storage device and can be recovered until the Trash/Recycle Bin is emptied.
This is a temporary action, allowing users to restore the file if needed. When the Trash/Recycle Bin is emptied, the file is permanently deleted, and the space it occupied is marked as free for reuse.
Information Booster:
• File Deletion in GUI-based OS: Moving a file to the Trash or Recycle Bin is a user-friendly mechanism that prevents accidental permanent deletion. It allows the user to recover files before they are permanently deleted.
• File System Operations: In most file systems (e.g., NTFS, HFS+, ext4), moving a file to the Trash does not involve immediate overwriting of data. Instead, it marks the file as deleted and moves it to a special directory.
• Data Recovery: Until the Trash or Recycle Bin is emptied, the data remains recoverable. Specialized tools can even recover files after the bin has been emptied, although this becomes more difficult over time as new data overwrites the space.
• Permanent Deletion: Only when the Trash or Recycle Bin is emptied, or a file is deleted using a secure deletion method, is the data actually overwritten or marked as free for reuse by the operating system.
• Logical vs. Physical Deletion: The act of moving a file to the Trash is considered logical deletion, as it updates the file system's metadata. Physical deletion occurs when the actual file data is erased from the storage medium.