File search
find
Searches for files in a directory tree.
Ubuntu
CentOS
Debian
Arch
SUSE
Slackware
Fedora
Verified: 2025-09-09
Syntax
$find [PFAD] [AUSDRUCK]
Optionen
-name
Suche nach Dateinamen (mit Wildcards)
-type
Dateityp (f=Datei, d=Verzeichnis, l=Link)
-size
Dateigröße (+1M = größer als 1MB)
-mtime
Änderungszeit in Tagen (-7 = letzte 7 Tage)
-user
Besitzer der Datei
-group
Gruppe der Datei
-perm
Berechtigungen
-exec
Führe Befehl für jede gefundene Datei aus
Examples
$find . -name '*.txt'
$find /home -type f -size +1M
$find . -mtime -7
$find . -exec grep -l 'pattern' {} \;
$find . -type d -empty
$find . -user username
$find . -perm 755
Typical use cases
?
Standard usage
find --help
Note
Powerful tool with many options. Use <code>-exec</code> with <code>{}</code> and <code>\;</code> for commands on found files.
Export