LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 03-13-2012, 06:31 PM   #1
4pixels
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, 06:43 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
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
 
Old 03-13-2012, 07:21 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 11,105

Rep: Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362Reputation: 1362
Do you have a gui running on it?
 
Old 03-13-2012, 09:19 PM   #4
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 7,416

Rep: Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406
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.

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


Reply


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 02:51 AM
[SOLVED] Bash script: how to move files to Trash instead of deleting? KonfuseKitty Programming 1 07-10-2010 12:44 PM
Automatically deleting trash akamad Linux - Newbie 7 05-16-2007 07:45 AM
Deleting files from command line goes to trash? HSN Linux - Enterprise 1 02-18-2007 11:38 PM
Deleting from trash can KezzerDrix Mandriva 1 03-27-2005 10:12 PM


All times are GMT -5. The time now is 01:54 PM.

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