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 ...

Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.