find_명령어 썸네일형 리스트형 [명령어] find rm 명령어 find rm 명령어 Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression] 생성된 지 30일 이상 된 파일만 삭제 find /var/spool/clientmqueue -ctime +30 -exec rm -f {} \; find /var/spool/clientmqueue -ctime +30 | xargs rm -r https://explainshell.com/ explainshell.com - match command-line arguments to their help text explainshell.com 더보기 [명령어] find 명령어 find 명령어 생성한 지 30일이 지난 파일 삭제 $ crontab -e 0 2 * * * find /var/spool/clientmqueue -ctime +30 -exec rm -f {} \; find /app/rsyslog -type f -name '*.log' -mtime +300 -ls find /app/rsyslog -type f -name '*.log' -mtime +300 -exec rm -f {} \; 생성한 지 180일이 지난 디렉터리(파일) 삭제 $ find /logs -type d -mtime +180 -exec rm -rf {} \; $ find /logs -type d -mtime +180 -exec rm -rf {} \; > /dev/null 2>&1 파일안에 있는 문자열 찾기.. 더보기 이전 1 다음