리눅스
find rm 명령어
변군Dev
2022. 4. 23. 20:57
728x90
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
explainshell.com - match command-line arguments to their help text
explainshell.com
728x90