Linux Commands Helper
💬 Your AI-powered Linux assistant
find Command - Search for Files
The find command is used to search for files and directories in a directory hierarchy based on various conditions.
Syntax
find [path...] [expression]
Examples
find /home -name \"file.txt\"
Search for file.txt in the /home directory and its subdirectories.
find . -type d -name \"docs\"
Search for directories named docs in the current directory and subdirectories.
find /var/log -size +10M
Find files larger than 10MB in /var/log.
Notes
- find supports many options to filter results by name, type, size, permissions, and more.
- Common options:
-name
(match file name),-type
(file type),-size
(file size).