OS X and Trash Can
I had a customer write about how he had an error message saying, "You do not
have sufficient privileges for HFS + private Data to empty the Trash."
This is a preemptive warning to be careful what you do in the Terminal mode
of OS X. You could slightly corrupt a file that you'll need to have cleaned
up later, forcing a possible complete reinstallation of your OS X system
The customer wrote back later that day with what he found in Apple's
Knowledge Base as a method of using the Terminal mode to empty the Trash.
1. Open the Terminal Application found in your list of Utilities.
2. Type: sudo rm -rf
NOTE: Type a space after "-rf". The command does not work without the
Do not press Return until Step 6.
3. Open your Trash.
4. Choose Select All from the Edit menu.
5. Drag all of your Trash into the Terminal window. This causes the Terminal
window to automatically fill in the name and location of each item in
6. Press Return.
All of the icons in your Trash are deleted. As an alternative method, you
may execute these commands. The second and third commands will delete Trash
belonging to other users.
The commands are:
sudo rm -rf ~/.Trash/
sudo rm -rf /.Trashes/
sudo rm -rf /Volumes/<columename>/.Trashes/
Then press return and you have emptied the Trash of all users on the
computer as long as you were logged in as the root user.
Try rmdir...Originally posted by big
rf works on folders if there is not a file in the folder (otherwise you wil get an error), you will have to open the folder (often there are hidden folders within each other, that you must "cd" into, finally in the last folder you will have to do a "ls" then "rm" all files. then "cd /(up one notch)" and "rf" what ever folder is there...then "cd /(up one notch)" and "rf" that folder... that was the process I had to go through
to change permission (chmod) from terminal, "cd /Volumes/(directory to your folder you want to change or delete, I suggest going there instead of just doing it)" then "ls" to view all the files& folders in that directory, then "chmod 777 NameOfFile"
pretty easy...and even easier once you do it 12 or 13 times...I'd suggest picking up a Unix book for some basic command lines and theories