NetWiki

I can make net work

User Tools

Site Tools


linux:start

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
linux:start [2024-02-27 15:19] davelinux:start [2025-10-28 16:12] (current) – [Find] dave
Line 29: Line 29:
 ----------------------- -----------------------
 ===== Find ===== ===== Find =====
-I never remember how to find old files... either of these will work. The second one uses minutes (I don't know why you'd want to) and shows how to exclude files.+I never remember how to find old files... either of these will work. The first one is files older than 45 days. The second one uses minutes (I don't know why you'd want to) and shows how to exclude files (! -name "blah.txt").
   find DIR -name "*_FILENAME-*.gz" -mtime +45   find DIR -name "*_FILENAME-*.gz" -mtime +45
   find . ! -name '*NOT_THIS*.gz' -mmin +$((45*24*60))   find . ! -name '*NOT_THIS*.gz' -mmin +$((45*24*60))
linux/start.1709047187.txt.gz · Last modified: by dave

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki