pwd, touch, mv, mkdir, rmdir, find, exa, eza, cat: add and update Korean translation (#12905)
* pages.ko/pwd,touch,mv,mkdir,rmdir,find,exa,eza: add pages * cat: reflect en updates in Korean translation
This commit is contained in:
36
pages.ko/common/find.md
Normal file
36
pages.ko/common/find.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# 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/*}}'`
|
||||
|
||||
- 주어진 크기 범위에 맞는 파일을 찾고 재귀 깊이를 "1"로 제한:
|
||||
|
||||
`find {{루트_경로}} -maxdepth 1 -size {{+500k}} -size {{-10M}}`
|
||||
|
||||
- 각 파일에 대해 명령 실행 (명령 내에서 파일명을 액세스하려면 `{}` 사용):
|
||||
|
||||
`find {{루트_경로}} -name '{{*.ext}}' -exec {{wc -l}} {} \;`
|
||||
|
||||
- 오늘 수정된 모든 파일을 찾아 결과를 단일 명령에 인수로 전달:
|
||||
|
||||
`find {{루트_경로}} -daystart -mtime {{-1}} -exec {{tar -cvf archive.tar}} {} \+`
|
||||
|
||||
- 빈 (0 바이트) 파일을 찾아 삭제:
|
||||
|
||||
`find {{루트_경로}} -type {{f}} -empty -delete`
|
Reference in New Issue
Block a user