Linux Foundation Certified System Administrator (LFCS) — Question 73
In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?
Answer options
- A. -dirmax
- B. -maxdepth
- C. -maxlevels
- D. -n
- E. -s
Correct answer: B
Explanation
The correct answer is B, -maxdepth, which specifically restricts the number of directory levels that the find command will descend into. Options A, C, D, and E do not exist in the find command for this purpose and therefore are incorrect.