Hands-on task
This task is step 13 of the course “find and xargs: search and bulk operations”
find -prune: exclude a directory
List all regular files under /root/tree, excluding the vendor directory entirely (none of its contents should appear in the list). Write the sorted result to /root/files.txt.
Reference:find
What you'll practise:
- find
- -prune
- -path
- excluding directories
- predicate logic