find

디렉토리 트리 아래에서 파일 또는 폴더를 재귀적으로 찾습니다. 더 많은 정보: https://manned.org/find.

find {{루트_경로}} -name '{{*.ext}}'

find {{루트_경로}} -path '{{**/경로/**/*.ext}}' -or -name '{{*패턴*}}'

find {{루트_경로}} -type d -iname '{{*lib*}}'

find {{루트_경로}} -name '{{*.py}}' -not -path '{{*/site-packages/*}}'

find {{루트_경로}} -maxdepth 1 -size {{+500k}} -size {{-10M}}

find {{루트_경로}} -name '{{*.ext}}' -exec {{wc -l}} {} \;

find {{루트_경로}} -daystart -mtime {{-1}} -exec {{tar -cvf archive.tar}} {} \+

find {{루트_경로}} -type {{f}} -empty -delete