Site Tools


informatique:linux:commandes

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
informatique:linux:commandes [2025/01/30 09:43] yahikoinformatique:linux:commandes [2025/05/15 07:44] (current) yahiko
Line 96: Line 96:
 </code> </code>
 https://serverfault.com/questions/388573/manually-rotating-logfile-with-rsyslogd/388576 https://serverfault.com/questions/388573/manually-rotating-logfile-with-rsyslogd/388576
 +
 +===== Supprimer des fichiers plus vieux que =====
 +<code bash>
 +find /mon/dossier -type f -mtime +7 -delete
 +</code>
 +Où ''+7'' est le nombre de jours.
 +
 +
 +<code bash>
 +find /mon/dossier -name "truc*.log" -type f -mtime +7 -delete
 +</code>
 +Où ''truc*.log'' est le nom du type de fichiers à supprimer.
informatique/linux/commandes.txt · Last modified: 2025/05/15 07:44 by yahiko