wtorek, 24 października 2017

Usuwanie katalogów / plików starszych niż X dni

find /path/to/base/dir/* -type d -ctime +10 | xargs rm -rf
find /path/to/base/dir/* -type f -ctime +10 | xargs rm -rf
Podziel się:

0 komentarze:

Prześlij komentarz