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

Mark Gibson gibsonm at bigpond.net.au
Sun Apr 24 22:22:36 PDT 2005


At 01:14 -0400 25/4/05, PoolMouse wrote:
>At 3:09 PM +1000 4/25/05, Mark Gibson wrote:
>>At 01:03 -0400 25/4/05, PoolMouse wrote:
>>>John Harrold <jmh17 at pitt.edu> wrote:
>>>
>>>>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.
>>>
>>>...remove the tilde in the second command.
>>>
>>>don
>>
>>Don,
>>
>>Thanks, but I suspect rm is only good for files and I"m talking 
>>about an issue with a folder / directory.
>
>rm works with directories if you use the -R flag. see my followup 
>email...did you try chflags?
>
>don

Tried and failed:

>Last login: Mon Apr 25 14:47:43 on ttyp3
>Welcome to Darwin!
>Home-Server:~ gibsonm$ chflags -R nouchg /Volumes/Leviathan/.Trash/*
>chflags: /Volumes/Leviathan/.Trash/*: No such file or directory
>Home-Server:~ gibsonm$ chflags -R nouchg ~/.Trash/*
>chflags: /Users/gibsonm/.Trash/*: No such file or directory
>Home-Server:~ gibsonm$
-- 

Regards,

Mark (}-:
+61 (0)4 1927 7198
Skype / AIM / iChat: gibsonm1

ON DRUGS AND DEVELOPMENT
There are two major products to come out of Berkeley: LSD and UNIX. We
don't believe this to be a coincidence.



More information about the X-Unix mailing list