I have a DNS-321 NAS drive which apparently runs Linux, so I logged in via ssh and I see .Trash-500 and .Trash-1000 directories. I realize that they're for trash, but why do I need two? Inside of them I see expunged, files, and info directories -- what are those for?
Asked
Active
Viewed 3,636 times
11
Gilles 'SO- stop being evil'
- 807,993
- 194
- 1,674
- 2,175
Stann
- 2,159
- 5
- 23
- 24
1 Answers
18
You can find the answers in the The FreeDesktop.org Trash specification:
Some excerpts:
$topdir/.Trash-$uiddirectory is to be used as the user's trash directory for thisdevice/partition.$uidis the user's numeric identifier.The
$trash/filesdirectory contains the files and directories that were trashed.The
$trash/infodirectory contains an “information file” for every file and directory in$trash/files.
There is no reference to expunge directory, though.
-
1[here](https://bugs.launchpad.net/bleachbit/+bug/388956) and [here](https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/422012) are some info about `expunged`. It's apparently a temporary part of the process for emptying the trash, but stuff gets stuck if something can't be deleted. – Random832 Dec 03 '11 at 23:53
-
the correct link to the spec is: https://specifications.freedesktop.org/trash-spec/trashspec-latest.html – myrdd Jun 11 '23 at 16:15
-
regarding `$trash/expunged/`, see here: https://askubuntu.com/questions/1297828/what-are-the-contents-of-contents-of-local-share-trash-expunged – myrdd Jun 11 '23 at 17:54