User Tools

Site Tools


linux:filesystem:find

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux:filesystem:find [2024/02/12 13:38] – created mslinux:filesystem:find [2024/07/09 15:08] (current) ms
Line 3: Line 3:
 <code> <code>
 find . -type f -mtime +5 -exec ls -l {} ';'    # älter als 5 Tage find . -type f -mtime +5 -exec ls -l {} ';'    # älter als 5 Tage
 +</code>
 +Älter als n Tage und alle löschen
 +<code>
 +find . -type f -mtime +5 -exec rm -f {} ';'    # älter als 5 Tage
 +</code>
 +Deteien nach Größe auflisten
 +<code>
 +find . -ls | sort -n -k7
 +</code>
 +Deteien zu einem TAR packen
 +<code>
 +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 {} \;
 </code> </code>
  
linux/filesystem/find.1707741526.txt.gz · Last modified: 2024/02/12 13:38 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