Online Linux Terminal Logo
OnlineLinuxTerminal
Operaciones de archivosCLI Manual

$find

Busque archivos y directorios en una jerarquía según el nombre, tipo, tamaño o fecha de modificación.

Sintaxis del comandoPOSIX Standard
find [PATH] [OPTIONS] [EXPRESSION]
Comunidad Linux2.4k En línea

Chatea con usuarios de Linux, aprende comandos y descarga guías PDF.

Prueba en vivo en la terminal interactiva

Simulación del lado del cliente sin instalación y con respuesta inmediata.

Abrir en terminal de pantalla completa ↗
bash — terminal

Descripción general y funcionamiento

El comando find es una de las herramientas más potentes de Linux para buscar archivos de forma recursiva en el sistema de archivos en tiempo real.

Opciones y banderas comunes

Flag / OptionDescription
-name [pattern]Search for files matching the specified filename or wildcard pattern (case-sensitive).
-iname [pattern]Search for files matching the pattern ignoring case distinctions.
-type [f|d|l]Filter results by file type: f (regular file), d (directory), l (symbolic link).
-size [+|-][n]Search by file size: +10M (larger than 10MB), -1k (smaller than 1KB).
-mtime [n]Find files modified n*24 hours ago (+7 for older than a week, -1 for last 24h).
-exec [cmd] {} \;Execute a specific shell command on each matching file found.

Ejemplos prácticos del mundo real

#1Find files by exact name or extension
find /var/log -name "*.log"

Recursively scans the /var/log directory for all files ending with the .log extension.

#2Find all directories in the home folder
find /home/user -type d

Filters and outputs only directory paths inside the user home folder.

#3Find files modified in the last 24 hours
find . -type f -mtime -1

Locates recently created or modified files in the current working directory.