【Linux】用find刪除大於30天的文件

1.刪除文件命令: html find 對應目錄 -mtime +天數 -name "文件名" -exec rm -rf {} \; linux 實例命令: find /opt/soft/log/ -mtime +30 -name "*.log" -exec rm -rf {} \; 說明: 將/opt/soft/log/目錄下全部30天前帶".log"的文件刪除。具體參數說明以下: find:l
相關文章
相關標籤/搜索