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?
1 Answer
You can find the answers in the The FreeDesktop.org Trash specification:
Some excerpts:
$topdir/.Trash-$uid
directory is to be used as the user's trash directory for thisdevice/partition
.$uid
is the user's numeric identifier.The
$trash/files
directory contains the files and directories that were trashed.The
$trash/info
directory contains an “information file” for every file and directory in$trash/files
.
There is no reference to expunge
directory, though.
-
1
-
the correct link to the spec is: specifications.freedesktop.org/trash-spec/trashspec-latest.html– myrddCommented Jun 11, 2023 at 16:15
-
regarding
$trash/expunged/
, see here: askubuntu.com/questions/1297828/…– myrddCommented Jun 11, 2023 at 17:54