View Full Version : Deleting stuck files
gaomay
Dec 7, 2002, 01:52 PM
I know there's a way to delete stuck files using the terminal but I'm not sure of the procedure - can anyone help?
Thanks in advance.
mike czech
Dec 7, 2002, 02:41 PM
taken from http://discussions.info.apple.com/WebX?14@12.63p1a910dSy.6@.3bbbf188/0 (tip posted by Joel C.)
1. Launch Terminal
2.Type: sudo rm -R
3. Press the space bar once.
4. Drag the folder/file to the Terminal window. The files pathway should show up.
5. Press return
6. If you're asked for a password enter it and press return.
Worked for me every time...
Rower_CPU
Dec 7, 2002, 02:45 PM
I'm not sure what you mean by "stuck files", but if you're referring to files that the Trash can't delete, here's how:
Use the command "rm -rf filename" to delete your .Trash file in your user directory. If you need to delete a file you don't own or have write access for, add "sudo" preceding the command: "sudo rm -rf filename"
A word of warning..."rm -rf" is a powerful command that deletes files w/out prompting for confirmation. Make sure you know what you're doing with it, because it's easy to make a mistake and trash the wrong files.
You might also want to check out BatChmod:
http://versiontracker.com/moreinfo.fcgi?id=12057&db=mac
It has a GUI based method of force emptying the trash.
gaomay
Dec 8, 2002, 04:32 PM
Great - woreked a treat - thanks!
Macette
Dec 8, 2002, 05:49 PM
Thanks - I've been having this problem too, and have been so sick of the 'full' trash icon...
now i feel clean again.
King Cobra
Dec 8, 2002, 07:48 PM
Another technique to use, which doesn't require the Terminal, is using Root User (http://kbase.info.apple.com/cgi-bin/WebObjects/kbase.woa/wa/query?searchMode=Assisted&type=id&val=PQ.106290&bestBetID=106290&IsPQ=true).
This works for a lot of other situations, and has helped me when even the -rm... didn't work.
Rower_CPU
Dec 8, 2002, 08:03 PM
Originally posted by King Cobra
Another technique to use, which doesn't require the Terminal, is using Root User (http://kbase.info.apple.com/cgi-bin/WebObjects/kbase.woa/wa/query?searchMode=Assisted&type=id&val=PQ.106290&bestBetID=106290&IsPQ=true).
This works for a lot of other situations, and has helped me when even the -rm... didn't work.
That's essentially what the "sudo" command does, and avoids the pitfalls of accidentally messing something up when logged in as "root".
kiwi_the_iwik
Dec 10, 2002, 09:57 AM
If you have problems/issues in dealing with the Terminal, try the excellent "Pseudo" - downloadable from VersionTracker. It lets you work with the files as administrator: No mess, no fuss - just drag-and-drop on the icon, and you're instantly in "Root".
The other way - boot into OS9, and empty the trash...
;)
vBulletin® v3.6.10, Copyright ©2000-2009, Jelsoft Enterprises Ltd.