O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

find

Uses criteria to find files

find [directory-list] [expression]

The find utility selects files that are located in specified directory hierarchies and meet criteria specified in an expression.

Arguments

The directory-list specifies the directories that find is to search. When find searches a directory, it searches all subdirectories to all levels. When you do not specify a directory-list, find searches the working directory.

The expression contains criteria, as described in “Criteria,” following. The find utility tests each of the files in each of the directories in the directory-list to see whether it meets the criteria described by the expression. When you do not specify an expression, the expression defaults to -print.

A SPACE separating ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required