LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   finding and deleting contents of Trash (http://www.linuxquestions.org/questions/linux-newbie-8/finding-and-deleting-contents-of-trash-934306/)

4pixels 03-13-2012 07:31 PM

finding and deleting contents of Trash
 
Running CentOS. Googled and tried various shell commands but most just come back with no such directory. Any ideas as I need to empty the trash on a partition that is nearly full.

Tinkster 03-13-2012 07:43 PM

Hi, welcome to LQ!

What's the partition, what's your partitioning scheme?

What's the fill status?

How have you ascertained that it's a "trash" problem?

Cheers,
Tink

jefro 03-13-2012 08:21 PM

Do you have a gui running on it?

frankbell 03-13-2012 10:19 PM

Open desktop standards put Trash in .local/share in ~/. On partitions with no ~/, it is in the root of the partition in my experience.

Here's an example from this here Debian box. In this case, Trash was empty:

Code:

:~$ ls .local/share/Trash
expunged  files  info
~$ cd /media/sdb5
/media/sdb5$ ls -a
.    backups          [directory]  [another directory]       
..    downloads        [directory1]  .Trash-1000
Acer  .directory      lost+found 
/media/sdb5$ cd .Trash-1000
/media/sdb5/.Trash-1000$ ls
expunged  files  info
/media/sdb5/.Trash-1000$ cd files
/media/sdb5/.Trash-1000/files$ ls
/media/sdb5/.Trash-1000/files$

If there's something to be deleted in Trash/files, there is usually also something in Trash/info to be deleted.


All times are GMT -5. The time now is 08:57 AM.