[ale] delete all files but leave folder structure intact

Geoffrey Myers lists at serioustechnology.com
Tue Apr 19 12:25:36 EDT 2011


Paul Cartwright wrote:
> On 4/19/2011 9:33 AM, Lightner, Jeff wrote:
>> Picky picky
>>
>> Then don't ever do "rm -rf .*"
>  
> 
> especially as ROOT:)


centosvmfoo> su
Password:
root at centosvm/home/esoteric/foo> rm -rf .*
rm: cannot remove `.' or `..'
rm: cannot remove `.' or `..'

Still won't remove the directory you're sitting in. :)

-- 
Until later, Geoffrey

"I predict future happiness for America if they can prevent
the government from wasting the labors of the people under
the pretense of taking care of them."
- Thomas Jefferson


More information about the Ale mailing list