LPIC-1 Exam 101 v5 (Linux Administrator) — Question 7
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. -maxdepth
- B. -dirmax
- C. -maxlevels
- D. -s
- E. -n
Correct answer: A
Explanation
The correct answer is -maxdepth, as it specifically limits the depth of the search in the directory structure. The other options do not exist in the find command or do not serve the purpose of restricting the search depth.