The Linux find command is a built in powerful tool that can be used to locate and manage files and directories based on a wide range of search criteria.For example, we can find files by their name, extension, size, permissions, etc.
Common Find commands
Searching for a file by name
|
|
Find files larger than 100mb in the current dir:
|
|
Searching for a specific file in a directory
|
|
Find files by extension:
|
|
Find files or directories with certain names:
|
|
Find files in multiple directories
|
|
Find files containing a certain text
|
|
Find files by size We can even find files by different sizes. Size options are:
c
- bytesk
- kilobytesM
- MegabytesG
- Gigabytes
Example
|
|
Find and delete specific files
|
|