8.1.4 Debug Options

The ‘-D’ option makes find produce diagnostic output. Much of the information is useful only for diagnosing problems, and so most people will not find this option helpful.

The list of debug options should be comma separated. Compatibility of the debug options is not guaranteed between releases of findutils. For a complete list of valid debug options, see the output of find -D help.

Valid debug options include:

tree

Show the expression tree in its original and optimized form.

stat

Print messages as files are examined with the stat and lstat system calls. The find program tries to minimise such calls.

opt

Prints diagnostic information relating to the optimisation of the expression tree; see the ‘-O’ option.

rates

Prints a summary indicating how often each predicate succeeded or failed.

all

Enable all of the other debug options (but ‘help’).

help

Explain the debugging options.