 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

25th May 2005, 08:46 PM
|
|
Registered User
|
|
Join Date: Mar 2005
Location: Athens / Greece
Age: 29
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?
|

25th May 2005, 08:53 PM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Abq, NM
Age: 35
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.
|

25th May 2005, 10:05 PM
|
|
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
|

25th May 2005, 10:37 PM
|
 |
Administrator
|
|
Join Date: Dec 2004
Location: Canada
Age: 22
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
|

26th May 2005, 12:02 AM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Abq, NM
Age: 35
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.
|

26th May 2005, 12:56 AM
|
 |
Registered User
|
|
Join Date: Apr 2004
Location: Ottawa, Canada
Posts: 1,932

|
|
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.
|

26th May 2005, 01:00 AM
|
 |
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?
|

26th May 2005, 01:08 AM
|
 |
Registered User
|
|
Join Date: Apr 2004
Location: Ottawa, Canada
Posts: 1,932

|
|
|
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.
|

26th May 2005, 01:12 AM
|
 |
Registered User
|
|
Join Date: May 2005
Posts: 33

|
|
|
I hate grey areas.
|

26th May 2005, 04:51 AM
|
|
Registered User
|
|
Join Date: Feb 2005
Age: 34
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!!
|

26th May 2005, 11:50 PM
|
 |
Administrator
|
|
Join Date: Dec 2004
Location: Canada
Age: 22
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
Last edited by Firewing1; 28th May 2005 at 02:38 PM.
|

27th May 2005, 12:18 AM
|
 |
Registered User
|
|
Join Date: Apr 2004
Location: Ottawa, Canada
Posts: 1,932

|
|
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.
|

28th May 2005, 02:41 PM
|
 |
Administrator
|
|
Join Date: Dec 2004
Location: Canada
Age: 22
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
|

29th May 2005, 01:13 AM
|
 |
Registered User
|
|
Join Date: May 2005
Location: Abq, NM
Age: 35
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.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 04:00 (Wednesday, 22-05-2013)
|
|
 |
 |
 |
 |
|
|