User Tools

Site Tools


linux:filesystem:find

Dateien suchen

Älter als n Tage und alle auflisten

find . -type f -mtime +5 -exec ls -l {} ';'    # älter als 5 Tage

Älter als n Tage und alle löschen

find . -type f -mtime +5 -exec rm -f {} ';'    # älter als 5 Tage

Deteien nach Größe auflisten

find . -ls | sort -n -k7

Deteien zu einem TAR packen

find . -type f -name "*.pdf" -not -path "./old/*" -not -path "./tmp/*" -exec tar -rvf /media/ramdisk/files-pdf.tar {} \;

find . -type f \( -iname \*.pdf -o -iname \*.epub -o -iname \*.djvu \) -not -path "./old/*" -not -path "./tmp/*" -exec tar -rvf /media/ramdisk/books.tar {} \;
linux/filesystem/find.txt · Last modified: 2024/07/09 15:08 by ms

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki