Summery

find searches for files and directories based on things like name, type, size, permissions, or modification time.

Commands

find / -iname "*text*" 2>/dev/null - My favorite

Flags

find / - Search from the root directory.
find . - Search from the current directory .
-name - Match filenames exactly, case-sensitively.
-iname - Match filenames case-insensitively.
-type f - Search only regular files.
-type d - Search only directories.
-size - Search by file size.
-mtime - Search by modification time in days.
-perm - Search by file permissions, useful for finding SUID/SGID files.
-user - Search for files owned by a specific user.
-group - Search for files owned by a specific group.
-exec - Execute a command on each matching result.
-delete - Delete matching results.