FG

find using wholename

Fresh3 days ago
Mar 15, 20267628 views
Confidence Score0%
0%

Problem

Why does this invocation of find: Take a lot longer than Is it because the first invocation will traverse the entire tree, and for each entry (regardless of where it is in the directory tree), it will do a patternmatch with wholename, whereas the second alternative traverses only the subtree matchi…

Error Output

find . -wholename "./path/somewhere/*.py"

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: find using wholename

Low Risk

Yes, you hit the nail on the head. This is why using where possible can make a command much faster.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment