Fedora Linux Support Community & Resources Center
  #1  
Old 25th May 2005, 08:46 PM
stathisx Offline
Registered User
 
Join Date: Mar 2005
Location: Athens / Greece
Age: 31
Posts: 40
empty trash

i have filled my trash with a lot of garbage.the problem is that there are too many files there in many subfolders and i have to be root to erase them.i can't erase one file at a time because it is so annoying for all these files.is there any way to locate where all these files are located and finaly lead them to /dev/null?
Reply With Quote
  #2  
Old 25th May 2005, 08:53 PM
bytesniper Offline
Registered User
 
Join Date: May 2005
Location: Abq, NM
Age: 37
Posts: 1,158
not sure what desktop your using (or if its even different between kde and gnome, etc) but try looking in:

~/.local/share/Trash

there will be 2 subdirs called files and info that need to stay.
__________________
I am root. If you see me laughing you better have a backup.
Reply With Quote
  #3  
Old 25th May 2005, 10:05 PM
simoj Offline
Registered User
 
Join Date: Apr 2005
Posts: 2
In my system they seem to be in ~/.Trash and there doesn't seem to be any extra files that need to stay
Reply With Quote
  #4  
Old 25th May 2005, 10:37 PM
Firewing1 Offline
Registered User
 
Join Date: Dec 2004
Location: Canada
Age: 23
Posts: 9,224
Hey I do this when it gives me that error message: Just open up a terminal and type the following commands:
su
This will ask you for a password. Enter the root password
cd /home/myusername
rm -drf ./*
exit
exit

Just replace myuser with your real username. This will effectively remove all files in your trash.
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #5  
Old 26th May 2005, 12:02 AM
bytesniper Offline
Registered User
 
Join Date: May 2005
Location: Abq, NM
Age: 37
Posts: 1,158
rm -drf ./*

kind of a dangerous command to issue in ones home directory? that will remove every non hidden directory and file from the current directory on down, especially since the trash is going to be in a .hidden directory somewhere in his home.
__________________
I am root. If you see me laughing you better have a backup.
Reply With Quote
  #6  
Old 26th May 2005, 12:56 AM
jtang613 Offline
Registered User
 
Join Date: Apr 2004
Location: Ottawa, Canada
Posts: 1,931
Quote:
Originally Posted by Firewing1
Hey I do this when it gives me that error message: Just open up a terminal and type the following commands:
su
This will ask you for a password. Enter the root password
cd /home/myusername
rm -drf ./*
exit
exit

Just replace myuser with your real username. This will effectively remove all files in your trash.
Firewing1
The above is an honest mistake I'm sure - but very BAD ADVICE nonetheless

Same as above, except change to the ~/.Trash directory and delete all files in it.
Open a terminal:
Code:
su
cd ~/.Trash
rm -rf
exit
exit
hth,
Jason
__________________
There is no 'CTRL' button on Chuck Norris's computer. Chuck Norris is always in control.
Reply With Quote
  #7  
Old 26th May 2005, 01:00 AM
Daniyl Offline
Registered User
 
Join Date: May 2005
Posts: 33
While we are on the subject... is it safe to delete EVERYTHING in my /Tmp folder? It's only a temp folder right?
__________________
HalleluYAHWEH
Help stop the spread of violence http://www.peacefulsolution.org
Reply With Quote
  #8  
Old 26th May 2005, 01:08 AM
jtang613 Offline
Registered User
 
Join Date: Apr 2004
Location: Ottawa, Canada
Posts: 1,931
Yes and No... That's kinda a grey area.

You probably can without any ill effects, but if you do, it's probably wise to reboot after you do it.

Jason
__________________
There is no 'CTRL' button on Chuck Norris's computer. Chuck Norris is always in control.
Reply With Quote
  #9  
Old 26th May 2005, 01:12 AM
Daniyl Offline
Registered User
 
Join Date: May 2005
Posts: 33
I hate grey areas.
__________________
HalleluYAHWEH
Help stop the spread of violence http://www.peacefulsolution.org
Reply With Quote
  #10  
Old 26th May 2005, 04:51 AM
gavinw6662 Offline
Registered User
 
Join Date: Feb 2005
Age: 35
Posts: 1,281
Quote:
Originally Posted by Daniyl
I hate grey areas.
Always with Linux buddy, always. To tell you the truth, the other day, I issued a command on my mail server, and guess what, bye bye went all my mail for that user. Sad thing, it was thursday, and I back up on the weekends, so I lost about 5 days worth of e-mails, not too bad. But grey area, issued a command much like the one suggested above, so be careful, never rm -f, never!!
Reply With Quote
  #11  
Old 26th May 2005, 11:50 PM
Firewing1 Offline
Registered User
 
Join Date: Dec 2004
Location: Canada
Age: 23
Posts: 9,224
Hey,
Yes, i know it's dangerous... But that's why I say to cd to .Trash, then do rm -drf ./*. Nothing bad can happen, as ur in the Trash directory and I included a ./ part to it, so it's only files and subfolders of ~/.trash/ that get deleted...
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)

Last edited by Firewing1; 28th May 2005 at 02:38 PM.
Reply With Quote
  #12  
Old 27th May 2005, 12:18 AM
jtang613 Offline
Registered User
 
Join Date: Apr 2004
Location: Ottawa, Canada
Posts: 1,931
Quote:
Originally Posted by Firewing1
Hey,
Yes, i know it's dangerous... But that's why I say to cd to .Trash, then do rpm -drf ./*. Nothing bad can happen, as ur in the Trash directory and I included a ./ part to it, so it's only files and subfolders of ~/.trash/ that get deleted...
Firewing1
The only problem is that is not what you said. Even in your followup - these sort of typos are potentially disasterous for someone less familiar with Linux than us. Gotta preview before you post

Jason
__________________
There is no 'CTRL' button on Chuck Norris's computer. Chuck Norris is always in control.
Reply With Quote
  #13  
Old 28th May 2005, 02:41 PM
Firewing1 Offline
Registered User
 
Join Date: Dec 2004
Location: Canada
Age: 23
Posts: 9,224
Oops! Sorry, I forgot the cd .Trash part! OK, for newbies reading it this is the final code:
su
enter the password
cd /home/myusername/.Trash
rm -drf ./*
exit


Thanks!
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #14  
Old 29th May 2005, 01:13 AM
bytesniper Offline
Registered User
 
Join Date: May 2005
Location: Abq, NM
Age: 37
Posts: 1,158
i just went back and double checked my system here and on a default install of FC4t3 the trash folder is in ~/.local/share/Trash with 2 sub directories, files and info. not sure what reaction the system would have to deleting the subfolders but if i manually have to empty the trash i just delete what is in files.

note: i am running KDE, not gnome which will probably make a difference (but not sure.. since i can't stand gnome long enough to work with it :P )

if you want to make absolute sure where the folder is create a text file on the desktop and move it to the trash. drop to a terminal, will default to your home dir, and type "find . -name [name of file you put in trash]" and then cd to the dir and delete everything in it
__________________
I am root. If you see me laughing you better have a backup.

Last edited by bytesniper; 29th May 2005 at 01:16 AM.
Reply With Quote
Reply

Tags
trash

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
f11 can't empty trash porcheberry Hardware & Laptops 4 16th December 2009 07:02 PM
empty Trash bd54338rre Using Fedora 2 23rd March 2009 09:25 PM
can't empty Trash oldwierdal Using Fedora 5 20th November 2008 01:20 AM
cant empty trash stefan1968 Using Fedora 2 6th July 2008 09:52 AM
Trash will not empty woodgnome Using Fedora 7 2nd July 2008 07:17 PM


Current GMT-time: 22:25 (Wednesday, 20-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat