World Library  
Flag as Inappropriate
Email this Article

Trash (computing)

Article Id: WHEBN0010255072
Reproduction Date:

Title: Trash (computing)  
Author: World Heritage Encyclopedia
Language: English
Subject: OneDrive, Waste container, Disk utility, MacKeeper, Hackers (film)
Collection: File System Directories, User Interface Techniques
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Trash (computing)

Example of an empty trash can icon, here designed by the Tango Desktop Project.
Example of a "trash can containing files" icon, here designed by the Tango Desktop Project.

In computing, the trash (also known as the recycle bin and by other names) is temporary storage for files that have been deleted in a file manager by the user, but not yet permanently erased from the file system. Typically, a recycle bin is presented as a special file directory to the user (whether or not it is actually a single directory depends on the implementation), allowing the user to browse deleted files, undelete those that were deleted by mistake, or delete them permanently (either one by one, or by the "Empty Trash" function).

Within a trash folder, a record is kept of each file and/or directory's original location. On certain operating systems, files must be moved out of the trash before they can be accessed again.

Whether or not files deleted by a program go to the recycle bin depends on its level of integration with a particular desktop environment and its function. Low-level utilities usually bypass this layer entirely and delete files immediately. A program that includes file manager functionality may or may not send files to the recycle bin, or it may allow the user to choose between these options.

Contents

  • History 1
  • Implementations 2
    • Linux desktop environments 2.1
    • Mac OS X 2.2
    • Microsoft Windows 2.3
  • Other uses 3
  • See also 4
  • References 5
  • External links 6

History

A small icon of a waste container for deleting files was implemented during the development of the Apple Lisa user interface in 1982, where it was called the “Wastebasket.” The concept carried over to the Apple Macintosh, as the “Trash”,[1] except in the pre-OS 9 “International English” localization, which retained “Wastebasket.”[2]

Apple Inc. sued to prevent other software companies from offering graphical user interfaces similar to its own. Apple lost most of its claims but courts agreed Apple's Trash icon was original and protected by copyright.[3] Non-Apple software may use other metaphors for file deletion, such as Recycle Bin, Smart Eraser, or Shredder.[4]

In early versions of the Macintosh Finder, Trash contents were listed in volatile memory. Files moved to the Trash would appear there only until the Finder session ended, then they would be automatically erased. When System 7 was released, the Trash became a folder that retained its contents until the user chose to empty the trash.

Microsoft first implemented the "trash can" concept in MS-DOS 6, under the name Delete Sentry: When a file was deleted, it was moved to a hidden SENTRY folder at the root of the drive.[5][6] Microsoft introduced its current trash system, the Recycle Bin, with Windows 95, as an area to store and review files and folders prior to deletion.[7] In this version, the original location record of the file is stored, but the folder itself didn't allow subdirectories. When a folder is deleted, its containing files are moved into the bin and mixed with other deleted files. The directory structure can only be restored if the batch of files are "undeleted". The current (revised) Recycle Bin allows for subdirectory trees to exist within folders that have been moved there.

Implementations

Recycle bin functionality is usually integrated into a desktop environment and its file manager. Examples include:

Some implementations may contain "shredding" functionality to counter data remanence.

Linux desktop environments

The KDE, GNOME[8] and Xfce implementations comply with the

  • Microsoft Knowledge Base article "How the Recycle Bin Stores Files"

External links

  1. ^ "Macintosh Stories: Busy Being Born". Folklore.org. 1999-02-22. Retrieved 2011-08-26. 
  2. ^ "GUIdebook > Extras > Trivia". Folklore.org. 2006. Retrieved 2012-04-30. 
  3. ^ "APPLE COMPUTER, INC. v. MICROSOFT CORP., 35 F.3d 1435 (9th Cir. 1994)". Home.earthlink.net. Retrieved 2011-08-26. 
  4. ^ Lewis, Peter H. (27 August 1991). "PERSONAL COMPUTERS; Norton Desktop for Windows". The New York Times. 
  5. ^ "Delete Sentry Automatically Purges Files When Necessary". Microsoft Support. Microsoft Corporation. Retrieved 3 June 2010. When Microsoft Undelete is using the Delete Sentry level of protection, files that are deleted are stored in a hidden SENTRY directory in the root of the drive. 
  6. ^ "Now You Delete It, Now You Don't". PC Operating Instructions, Vol.5 Issue 6. Smart Computing. June 1994. Retrieved 3 June 2010. Delete Sentry. This is the most reliable file-recovery method. This method sets up a hidden directory named SENTRY. UNDELETE saves the contents of all deleted files in this directory. Because these files are kept in the hidden directory, it doesn't matter whether the originals have been written over or not. UNDELETE simply restores the files you want from the SENTRY directory. 
  7. ^ a b c d e "How the Recycle Bin Stores Files".  
  8. ^ "Bug 41850 – Trash should follow fdo trash spec (adds restoring facilities)". Bugzilla.gnome.org. Retrieved 2011-08-26. 
  9. ^ "Trash specification". Freedesktop.org. Retrieved 2012-04-03. 
  10. ^ "Files Deleted at MS-DOS Prompt Do Not Go to Recycle Bin". Support.microsoft.com. 2007-01-19. Retrieved 2011-09-09. 
  11. ^ "c# - How do you place a file in recycle bin instead of delete?". Stack Overflow. Retrieved 2011-08-26. 
  12. ^ "Recycle Bin overview: Windows XP Professional Product Documentation". Microsoft.com. Retrieved 2011-09-09. 
  13. ^ "Recycle Bin Limitations". www.virusresearch.org. Retrieved 26 May 2014. 
  14. ^ "Why does the Recycle Bin have different file system names on FAT and NTFS?". The Old New Thing. MSDN Blogs. Retrieved 2011-08-26. 
  15. ^ "HOW TO: Bypass the Recycle Bin When You Delete Files and Folders in Windows XP". Support.microsoft.com. 2004-03-26. Retrieved 2011-09-09. 
  16. ^ "Create a Match Between Your Application and the Real World". Library.gnome.org. Retrieved 2011-08-26. 

References

See also

Mac OS has long allowed dragging a disk icon to the Trash as a method for unmounting and/or physically ejecting a disk, but this does not place the disk in the Trash folder nor does it erase the disk. In Mac OS X the Trash icon temporarily changes to an Eject or Disconnect symbol whenever storage volumes are dragged. The GNOME Human Interface Guidelines cite such behavior as an example of a discouraged metaphor.[16]

Other uses

It is possible to bypass the Recycle Bin and directly delete a file by holding the SHIFT key while performing an action that would normally send a file to the trash.[15]

  • By right-clicking on a file and selecting delete from the menu
  • Selecting the file and pressing the delete key
  • Selecting delete from the Task pane in Windows XP
  • Selecting the file and choosing delete from the File menu (in Windows XP Explorer)
  • By dragging and dropping a file into the Recycle Bin icon
  • From the Send To menu
  • From a context menu command or some other function in a software application (usually configurable)

In Windows Explorer, files are moved to the Recycle Bin in a number of ways:

When the user views the Recycle Bin, the files are displayed with their original names. When the file is "Restored" from the Recycle Bin, it is returned to its original directory and name.[7]

Prior to Windows Vista, a file in the Recycle Bin is stored in its physical location and renamed as D<#>..[7] A hidden file called info2 (info in Windows 95 without the Windows Desktop Update) stores the file's original path and original name in binary format.[7] Since Windows Vista, the "meta" information of each file is saved as $I. and the original file is renamed to $R..

The Recycle Bin can be accessed from the desktop or Windows Explorer, or by typing shell:RecycleBinFolder in the Run dialog box ( Win+R). It is the only icon shown by default on the Windows XP desktop. When accessed from the desktop, the Recycle Bin options and information are different from those of the physical Recycle Bin folders seen on each partition in Windows Explorer. From Windows XP onwards, with NTFS, different users cannot see the contents of each other's Recycle Bins.

The actual location of the Recycle Bin depends on the type of operating system and file system. On older FAT file systems (typically Windows 98 and prior), it is located in Drive:\RECYCLED. In the NTFS filesystem (Windows 2000, XP, NT) it is Drive:\RECYCLER. On Windows Vista and Windows 7 it is Drive:\$Recycle.Bin folder.[14]

The Recycle Bin has a setting to configure the amount of deleted files it can store. Free disk space allocated for this is not actually used until files are deleted from folders and stored in the Recycle Bin. In versions of Windows prior to Windows Vista, the default configuration of the Recycle Bin is a global setting for all drives to hold 10% of the total capacity of each host hard drive volume to store deleted files. For example, on a volume with a capacity of 20 gigabytes, the Recycle Bin will hold up to 2 gigabytes of deleted files. This can be changed anywhere from 0 to 100% of the drive space, but will not be allowed to exceed 3.99GB of space, even if the user-indicated % of the drive space is larger than 3.99GB. If the Recycle Bin fills up to maximum capacity, the oldest files will be deleted in order to accommodate the newly deleted files.[7] If a file is too large for the Recycle Bin, the user will be prompted to immediately and permanently delete the file instead. This 3.99GB limit does not apply in Windows Vista and later Windows versions.[13]

The Recycle Bin only stores files deleted from hard drives, not from removable media, such as memory cards, thumb drives, or floppy disks. Nor does it store files deleted from network drives.[12]

Microsoft's Recycle Bin is implemented as a special folder with columns like Date deleted and Original location. Typically only files deleted via Windows Explorer (but not necessarily other Windows graphical interfaces such as file selection dialogs) will be put into the Recycle Bin; files deleted via the Command Prompt are permanently deleted, as (by default) are files deleted via operating system APIs and applications other than Windows Explorer.[10] Some operating system APIs do, however, allow applications to recycle files rather than delete them.[11] In previous Windows operating systems and in MS-DOS, undeletion was the only way to recover accidentally or intentionally deleted files.

Recycle Bin in Windows Vista

Microsoft Windows

Under Mac OS X, when a file is deleted in Finder, it is moved to a .Trashes folder, and when viewing the device's available space the space occupied by the deleted files is shown as occupied.

Mac OS X

Although the various Linux desktop environments such as GNOME, KDE, and Xfce provide a trash mechanism, there is traditionally no simple way to trash something from the command line interface. Some third-party applications, such as trash-cli, provide commands on the command-line to use the trash, compatible with the FreeDesktop.org Trash Specification.

ensuring that any applications written with this specification in mind will be interoperable with any trash can implementation. [9]

This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 



Copyright © World Library Foundation. All rights reserved. eBooks from Hawaii eBook Library are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.