File deletion

File deletion

File deletion is a way of removing a file from a computer's file system.

The reasons for deleting files are

  1. Freeing the disk space
  2. Removing duplicate or unnecessary data to avoid confusion
  3. Making sensitive information unavailable to others

All operating systems include commands for deleting files (rm on Unix, delete/del in MS-DOS, Microsoft Windows etc.). File managers also provide a convenient way of deleting files. Files may be deleted one-by-one, or a whole directory tree may be deleted.

Contents

Problem with accidental removal

The common problem with deleting files is accidental removal of information that later proves to be important. One way to deal with this is to back up files regularly. Erroneously deleted files may then be found in archives.

Another technique often used is not to delete files instantly, but to move them to a temporary directory whose contents can then be deleted at will. This is how the "recycle bin" or "trash can" works. Microsoft Windows and Apple's Mac OS X both employ this strategy.

In MS-DOS, one can use the undelete command. In MS-DOS the "deleted" files are not really deleted, but only marked as deleted—so they could be undeleted during some time, until the disk blocks they used are eventually taken up by other files. Defragging a drive may prevent undeletion, as the blocks used by deleted file might be overwritten since they are marked as "empty".

Another precautionary measure is to mark important files as read-only. Many operating systems will warn the user trying to delete such files. Where file system permissions exist, "ordinary" users are only able to delete their own files, preventing the erasure of other people's work or critical system files.

Under Unix-like operating systems, in order to delete a file, one must usually have write permission to the parent directory of that file.

Problem with sensitive data

The common problem with sensitive data is that deleted files are not really erased and so may be recovered by interested parties. Most file systems only remove the link to data (see undelete, above). But even overwriting parts of the disk with something else or formatting it may not guarantee that the sensitive data is completely unrecoverable. Special software is available that overwrites data, and modern (post-2001) ATA drives include a secure erase command in firmware. However high security applications sometimes require that a disk drive be physically destroyed to ensure data is not recoverable, as microscopic changes in head alignment and other effects can mean even such measures are not guaranteed.

References

See also


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • file deletion — erasing of a file …   English contemporary dictionary

  • Deletion — For the deletion policy in Wikipedia, see Wikipedia:Deletion policy Deletion is the act of deleting or removal by striking out material, such as a word or passage, that has been removed from a body of written or printed matter. Deletion may refer …   Wikipedia

  • File grooming — File grooming, in the context of computer file systems, is the act of rearranging files. Commonly, this is moving files to directories with names reflecting their contents.This act can also refer to the deletion of no longer relevant files,… …   Wikipedia

  • File system fragmentation — In computing, file system fragmentation, sometimes called file system aging, is the inability of a file system to lay out related data sequentially (contiguously), an inherent phenomenon in storage backed file systems that allow in place… …   Wikipedia

  • File Allocation Table — For other uses, see Fat (disambiguation). FAT Developer Microsoft Full Name File Allocation Table FAT12 (12‑bit version) FAT16/FAT16B (16‑bit versions) FAT32 (32‑bit version with 28 bits used) Introduced …   Wikipedia

  • File system — For library and office filing systems, see Library classification. Further information: Filing cabinet A file system (or filesystem) is a means to organize data expected to be retained after a program terminates by providing procedures to store,… …   Wikipedia

  • Wikipedia:Criteria for speedy deletion — For requests to hide the contents of edit summaries, see Wikipedia:Oversight. WP:SPEEDY redirects here. For the guideline discussing when to end deletion debates early as keep , see Wikipedia:Speedy keep. For the list of current candidates for… …   Wikipedia

  • Computer file — This article is about computer files and file systems in general terms. For a more detailed and technical article, see File system. A computer file is a block of arbitrary information, or resource for storing information, which is available to a… …   Wikipedia

  • Comparison of file hosting services — A comparison of file hosting services. Web Host Language Storage size Max. file size Direct access[1] Traffic/bandwidth limit File expiration[2] Misc. notes Remote uploading? Developer API? Date of last row update (added or revised) 1fichier BU,… …   Wikipedia

  • Device file system — In Unix like operating systems, a device file system or special file system allows software to interact with a device driver using standard input/output system calls, which simplifies many tasks.It includes device files , device nodes , or device …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”