.Trash

SLES 11 sp3 running only Data-Synchronizer Mobility.
I had an issue where the /var was loosing space progressively, I deleted backups and Log files and when I run a df -h the results did not reflect all the work I was doing.
There was nothing in my trash as per the Gnome desktop logged in as root.
Thru a series of events I discovered the hidden /var/.trash-0 folder contained 38Gb of files.
Can anyone give a “newbie” an explanation of why a deleted file does not appear in the trash can and why it is hidden in /var/.Trash-0 ?
If I clean up in the future what should I do differently?

On 15/08/2014 09:26, dkamp wrote:
[color=blue]

SLES 11 sp3 running only Data-Synchronizer Mobility.
I had an issue where the /var was loosing space progressively, I deleted
backups and Log files and when I run a df -h the results did not reflect
all the work I was doing.
There was nothing in my trash as per the Gnome desktop logged in as root.
Thru a series of events I discovered the hidden /var/.trash-0 folder
contained 38Gb of files.
Can anyone give a “newbie” an explanation of why a deleted file does not
appear in the trash can and why it is hidden in /var/.Trash-0 ?
If I clean up in the future what should I do differently?
[/color]

That the folder is named .Trash-0 suggests that the files were deleted
by root since the 0 was the UID of the user (root is UID 0).

How did you delete the backups and log files? Perhaps through the GNOME
(GUI) desktop using Nautilus?

If so, by default that acts like Windows’ Recycle Bin.

HTH.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.

Thank you Simon for the fast response!

[color=blue][color=green]

That the folder is named .Trash-0 suggests that the files were deleted
by root since the 0 was the UID of the user (root is UID 0).
[/color][/color]
This is correct

[color=blue][color=green]

How did you delete the backups and log files? Perhaps through the GNOME
(GUI) desktop using Nautilus?
[/color][/color]
I did use the default Browser which I just learned is Nautilus 2.28.4
I right clicked the files, and selected Move to trash.

[color=blue][color=green]

If so, by default that acts like Windows’ Recycle Bin.
[/color][/color]
I agree, except that when I look in the trash can that is on the desktop there is Nothing there.
If I click View, select show hidden files, I can browse to /var and I do see .Trash-0 folder.
My concern is that I cannot empty the trash and “everything” I delete stays there.
This is the issue I had and my monitoring software (Nagios) was alerting me that /var was 87% full.
How can I “Actually” delete something if it doesn’t appear in the trash, (but does in the hidden .Trash-0) ?

On 15/08/2014 11:21, dkamp wrote:
[color=blue]

I agree, except that when I look in the trash can that is on the desktop
there is Nothing there.
If I click View, select show hidden files, I can browse to /var and I do
see .Trash-0 folder.
My concern is that I cannot empty the trash and “everything” I delete
stays there.
This is the issue I had and my monitoring software (Nagios) was
alerting me that /var was 87% full.
How can I “Actually” delete something if it doesn’t appear in the trash,
(but does in the hidden .Trash-0) ?[/color]

What you can do is add a Delete option (in addition to “Move to
Wastebasket”) so you can “bypass” trash - in Nautilus select Edit >
Preferences then under Wastebasket on the Behaviour tab tick “Include a
Delete command that bypasses Wastebasket”.

HTH.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.

What you can do is add a Delete option (in addition to “Move to
[color=blue][color=green]
Wastebasket”) so you can “bypass” trash - in Nautilus select Edit >
Preferences then under Wastebasket on the Behaviour tab tick “Include a
Delete command that bypasses Wastebasket”.
[/color][/color]

I added the delete option and it works.
I also found if you select a file, hold the shift and press the delete key, you get the same pop up wanting to confirm it is actually deleting and it will be permanently lost.
So I guess I’m OK now, just perplexed why it doesn’t drop it in the Desktop Trash can.
I guess I have to remember that this isn’t Windows.
Thank you!