Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I did

~/pythonsource1/python2.6-2.6.5$ find -D rates . -type d

and got

Predicate success rates after completion:
[need type] -type d [0.4] [280/4350=0.0643678] -a [0.4] [280/4350=0.0643678] -print [1] [280/280=1] 

What does the [0.4] indicate ?

share|improve this question

migrated from stackoverflow.com May 18 '11 at 16:48

This question came from our site for professional and enthusiast programmers.

up vote 4 down vote accepted

Judging from the source code, the numbers in square brackets are the a priori estimated success rate for a given predicate. That is, the first [0.4] is an estimate of the probability that the -type d will evaluate to true. It may be used to determine the order in which the terms of the predicate are evaluated. You can find more in findutils-4.4.2/find/parser.c, findutils-4.4.2/find/tree.c and findutils-4.4.2/find/pred.c.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.