[X-Unix] Using the CLI to delete "pesky" files/folders

John Harrold jmh17 at pitt.edu
Sun Apr 24 19:55:57 PDT 2005


Sometime in April Mark Gibson assaulted the keyboard and produced:

| Hi,
| 
| I'm the first to admit the the CLI is not my forte (to be honest that 
| is why I got away from Fortran, COBOL, CP-M and DOS a long, long 
| while ago).
| 
| However I have some folders and files that just sit in the trash and 
| refuse to be deleted, so I'm hoping that "sudo ..." something can 
| remove them for me.
| 
| These files refuse to be deleted because either they are "invisible" 
| in the Finder or allegedly I don't have the correct privileges.
| 
| I've tried booting the volume up in OS 9 to avoid the permission 
| issues but deleting ./trash doesn't seem to help.

OS X seems to story the trash in ~/.Trash

Try something like:

rm -rf ~/.Trash/*.*

If that doesn't work you can try:

sudo rm -rf ~/username/.Trash/*.*

Where username is your login. 

--
----------------------------------------------------------
 john harrold               | \ / ASCII ribbon campaign   
 jmh at member.fsf.org      |  X  against HTML mail       
 the most useful idiot      | / \                         
----------------------------------------------------------
 What difference does it make to the dead, the orphans, 
 and the homeless, whether the mad destruction is brought 
 under the name of totalitarianism or the holy name of 
 liberty and democracy?
 --Gandhi
----------------------------------------------------------
  gpg --keyserver pgp.mit.edu --recv-key B23241CB
----------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://listserver.themacintoshguy.com/pipermail/x-unix/attachments/20050424/fd03dd32/attachment-0001.bin


More information about the X-Unix mailing list