Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-13-2012, 07:31 PM   #1
LQ Newbie
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
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.
Old 03-13-2012, 07:43 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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?

Old 03-13-2012, 08:21 PM   #3
Registered: Mar 2008
Posts: 15,512

Rep: Reputation: 2237Reputation: 2237Reputation: 2237Reputation: 2237Reputation: 2237Reputation: 2237Reputation: 2237Reputation: 2237Reputation: 2237Reputation: 2237Reputation: 2237
Do you have a gui running on it?
Old 03-13-2012, 10:19 PM   #4
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 11,526
Blog Entries: 12

Rep: Reputation: Disabled
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:

:~$ 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
If there's something to be deleted in Trash/files, there is usually also something in Trash/info to be deleted.

Last edited by frankbell; 03-13-2012 at 10:21 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost disk space after deleting files, trash, hidden trash, etc. themacguy Ubuntu 7 06-06-2012 03:51 AM
[SOLVED] Bash script: how to move files to Trash instead of deleting? KonfuseKitty Programming 1 07-10-2010 01:44 PM
Automatically deleting trash akamad Linux - Newbie 7 05-16-2007 08:45 AM
Deleting files from command line goes to trash? HSN Linux - Enterprise 1 02-19-2007 12:38 AM
Deleting from trash can KezzerDrix Mandriva 1 03-27-2005 11:12 PM

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration