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?
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?
In a nested directory structure, the 'find' command line option used to restrict the command to searching down a particular number of subdirectories is '-maxdepth'. The '-maxdepth' option takes a non-negative integer argument that specifies the maximum levels of directories to descend below the starting points.
A definitely and it is in MAN page, there are both maxdepth and mindepth
doesn't find any information in man pages in my distr
http://man7.org/linux/man-pages/man1/find.1.html my recommendation is that if you have any doubts, look for the man page directly in google.
-maxdepth levels Descend at most levels (a non-negative integer) levels of directories below the starting-points. -maxdepth 0 means only apply the tests and actions to the starting-points themselves.
check 'find' manpage, and search for maxdepth, there's a section for it called -maxdepth levels
It is A i checked the --help