Dateien Löschen, die älter sind als x Tage

Categories: Linux (Ubuntu)

“The find utility on linux allows you to pass in a bunch of interesting arguments, including one to execute another command on each file. We’ll use this in order to figure out what files are older than a certain number of days, and then use the rm command to delete them.”

find /path/to/files* -mtime +5 -exec rm {} \;

read more

Eine Datei unter Linux finden

Categories: Linux (Ubuntu)

Syntax:
find {dir-name} -name {file-name}

Beispiel:

find / -name foo.txt

List Files Newer Than 10 Days

Categories: Linux (Ubuntu)

How to List Files Newer Than 10 Days using ls:

find . -mtime -10

Welcome to miZine

MAC, Linux und das Beste aus dem WWW