Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ehsanvaravi

macrumors newbie
Original poster
Nov 10, 2008
16
0
hi,
please help me.
i do not know how to empty trash on my imac.
i have tried all ways i read on internet like option keyu and empty trash but all of them didnt work and i am still able to view items in the trash.

how can i get rid of them....


please help
 
If you want to use Terminal, I might be able to help.

Open Terminal and type:
Code:
cd .Trash

Press return. Just to make sure, type:
Code:
ls -a

and press return. Do the files from your trash show?
If so, type and press return:
Code:
rm -r
 
If you want to use Terminal, I might be able to help.

Open Terminal and type:
Code:
cd .Trash

Press return. Just to make sure, type:
Code:
ls -a

and press return. Do the files from your trash show?
If so, type and press return:
Code:
rm -r

thanks, when i did all of them , this message appeared:

usage: rm[-f | -i] [-dPRrvw] file ...
unlike file


what next?
 
Ooops. Sorry. Repeat from top and instead of rm -r, type
Code:
rm -r *

Be very careful with this. It deletes all contents of the folder you're in, so make sure, it's the trash.
 
it asks many questions like:
override rw-r--r-- root/admin for Adobe After Effects CS4/Adobe After Effects CS4.app/Contents/Frameworks/dvaui.framework/Versions/A/Resources/png/Search_Magnify_NoMenu_Down.png?
with different file names...


i am confused
what shall i do?
 
i have but i dont know where the problem is.
it asks so many questions
is there any other way to empty the trash?
 
try it with a "sudo" before "rm -r *", thus:
Code:
sudo rm -r *

Again: Make sure you're in the trash directory!
 
better just open the Terminal next time and type

sudo rm -rf .Trash/*

That way you don't risk removing anything else than the Trash in case you accidentally are in the wrong directory
 
better just open the Terminal next time and type

sudo rm -rf .Trash/*

That way you don't risk removing anything else than the Trash in case you accidentally are in the wrong directory

This is VERY dangerous command! Imagine what happens if you mistype and put a "space" before "/" or before "*" :eek:

See the safe results what would happen in that case by typing "ls -rf .Trash /*" :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.