Find Command
Find files by name.
find /path -name "filename"
find /path -iname "filename"
find /path -type d -name "dirname"
find /path -type f -name "*.txt"
find . -name "*.log"Find by Size
Search by file size.
find /path -size +100M
find /path -size -10k
find /path -size 50MFind by Time
Search by modification time.
find /path -mtime -7
find /path -atime -7
find /path -ctime +30
find /path -mmin -60
Find and Execute
Perform actions on results.
find /path -name "*.tmp" -delete
find /path -name "*.txt" -exec cat {} \;
find /path -type f -exec chmod 644 {} \;Find by Permissions
Search by file permissions.
find /path -perm 755
find /path -perm -644
find /path -perm /222Find Empty Files
Find empty files or directories.
find /path -empty
find /path -type f -empty
find /path -type d -emptyLocate Command
Fast file search using database.
locate filename
locate -i filename
locate -c filename
sudo updatedbWhich Command
Find command location in PATH.
which python
which -a pythonWhereis
Locate binary, source, manual.
whereis ls
whereis -b python
whereis -m gccCommon mistakes / Errores comunes
- People often copy a command or pattern without adapting placeholders, which can break production workflows unexpectedly.
- It is easy to forget environment-specific differences, so always verify behavior in your shell, runtime, or API gateway before shipping.
- Many errors come from skipping small validation steps, so test with realistic sample input before relying on the result.
Last updated: February 2026