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

PoolMouse poolmouse_nyc at mac.com
Sun Apr 24 22:40:04 PDT 2005


At 3:22 PM +1000 4/25/05, Mark Gibson wrote:
>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$

can you run an ls -l of the directory you're trying to flush?

thanks,
don


More information about the X-Unix mailing list