Web QrooniX

Friday, August 17, 2007

*Nix Tidbits

Got this error/warning while restarting Apache on FreeBSD:

No such file or directory:

Failed to enable the ‘httpready’ Accept Filter

To resolve this, issue the following command:

kldload accf_http


So, some some directory was filled with thousands of files. To remove these files, you will issue:

rm -rf *

But if this error occurs:
- /bin/rm: Argument list too long

You may use use find and xarg. To do that, you can issue this command:

find . -type f -name '*string_here*' -print | xargs rm

Others may ask, why not use the -delete option instead of xargs rm? There are a lot of deployments that has an old version of find. :)

Labels: , , , , ,

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?