Your browser (Internet Explorer 6) is out of date. It has known security flaws and may not display all features of this and other websites. Learn how to update your browser.
X

Archive for Mayıs 10th, 2010

Kenar

Unix de eski tarihli dosyaları silmek

SSH da bunu kullanarak eski tarihli dosyaları silebilirsiniz.

Örneğin eski mailleri silebilirsiniz.

CODE:
  1. find /home/adres -mtime +60 -type f -name "*" -exec rm {} \;> /dev/null 2>&1

+60 değeri 60 günden eski öğeleri silmek için kullanıyoruz.

-name "*"; tırnak içindeki alanda ise dosya belirtebilirsiniz.
Örneğin: "*.pdf" ,"*.php" şeklinde.