AI Generated Cheatsheets

Find Cheatsheet

The find command is used to search for files and directories in a specified location based on different search criteria.

Basic Syntax

find [path] [expression]

Examples

Options

Option Description
-name Search for files with a specific name.
-type Search for a specific type of file (e.g., file, directory).
-mtime Search for files modified within a specific period of time.
-size Search for files larger or smaller than a specific size.
-empty Search for empty files or directories.
-user Search for files owned by a specific user.
-perm Search for files with specific permissions.

Resources