Date: Fri, 11 Jun 1999 11:54:29 +1000 From: Greg Black <gjb-freebsd@gba.oz.au> To: "Richard Childers" <rchilders@hamquist.com> Cc: "Dmitriy Bokiy" <ratebor@cityline.ru>, freebsd-security@FreeBSD.ORG Subject: Re: Newbie questions: DoS & xinetd Message-ID: <19990611015430.29859.qmail@alice.gba.oz.au> In-Reply-To: <37600E33.9A11E641@hamquist.com> of Thu, 10 Jun 1999 12:12:51 MST References: <18819.990610@cityline.ru> <37600E33.9A11E641@hamquist.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Richard Childers" writes: > For instance, if I wanted to search for all occurrences of the string > "net.inet.ip.redirect", I would do: > > # find / -type f -exec grep -i "net.inet.ip.redirect" {} \; -print One word of caution for indiscriminate use of "find /" is that it can lead to long waits and lots of disk thrashing on machines with lots of files. Here's one I just ran: # /usr/bin/time find / -print | wc -l 3296.20 real 96.33 user 968.21 sys 711184 Obviously, to do something like run grep over however many of those 700k entries and <6GB of data that are actually files would add quite a bit to the 55 minutes the simple find took. Of course, this is not to argue that people should not look for answers on their machines. -- Greg Black -- <gjb@acm.org> or <gjb@computer.org> Fight censorship in Australia: <http://www.efa.org.au> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990611015430.29859.qmail>