OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

Options

Finally, we have the options. The options are used to control the scope of a find search. They may be included with other tests and actions when constructing find expressions. Here is a list of the most commonly used ones:


Table 17-7: find Options


Option Description

Option Description

-depth Direct find to process a directory’s files before the directory itself. This option is automatically applied when the -delete action is specified.


image

-maxdepth levels Set the maximum number of levels that find will

descend into a directory tree when performing tests and actions.


image

-mindepth levels Set the minimum number of levels that find will

descend into a directory tree before applying tests and actions.


image


image

-mount Direct find not to traverse directories that are mounted on other file systems.


image

-noleaf Direct find not to optimize its search based on the assumption that it is searching a Unix-like file system. This is needed when scanning DOS/Windows file systems and CD-ROMs.


image


Top OS Cloud Computing at OnWorks: