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

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.