본문 바로가기

리눅스

find rm 명령어

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

f1

https://explainshell.com/

 

explainshell.com - match command-line arguments to their help text

 

explainshell.com

 

728x90