본문 바로가기

Local & Server

리눅스, 한 달 이전에 생성된 파일 삭제

find <경로>/logs -mtime +30 -name '*.txt' -exec rm -f {} \;

.txt 파일이 아니면 다르게 세팅