Both Nautilus and Nemo create hidden folders called .Trash-1000
in any mounted device, apparently to manage their Trash folder. This is mighty confusing in network drives that are mounted by other users, that may be using other operating systems or programmes that do not recognise this folder as a trash bin.
Moreover, this folder expands with the number of files deleted and can not be erased from Ubuntu:
$ sudo rm -rf ./.Trash-1000
rm: cannot remove './.Trash-1000/files': Directory not empty
To free space in such mounted volumes the .Trash-1000
folder must be deleted from a different system.
Is there any way to prevent Nemo or Nautilus from creating this folder in network drives? I can naturally simply not use them, but they are handy in many situations.
.Trash-1000
folder yourself, and usechmod 000 .Trash-1000
and/orsudo chattr +i .Trash-1000
to prevent Nautilus from populating it. (I haven't actually tried this, but I would if I had this problem.) – pts Feb 25 '19 at 10:50