"리눅스 find"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-<source lang='cli'> +<source lang='console'>))
43번째 줄: 43번째 줄:
./images
./images
./components
./components
</source>
==두 개의 파일 동시에 찾기==
<source lang="console">
[root@koreanpol vector]# find -name "a.c" -o -name "b.c"
./a.c
./b.c
</source>
</source>



2016년 8월 17일 (수) 19:23 판

  다른 뜻에 대해서는 indexOf 문서를 참조하십시오.

1 개요

리눅스 find
/bin/find
  • 파일, 디렉토리 검색 리눅스 명령어
[root@zetawiki yum]# find
.
./version-groups.conf
./pluginconf.d
./pluginconf.d/security.conf
./pluginconf.d/fastestmirror.conf
./vars
./protected.d

2 리눅스 파일 찾기

find / -name 파일명
[root@zetawiki ~]# find / -name httpd.conf
/etc/httpd/conf/httpd.conf

3 하위 디렉토리 목록

하위디렉토리 전체(recursive)
[root@zetawiki vector]# find . -type d
.
./images
./images/preferences
./components
1단계 하위디렉토리
[root@koreanpol vector]# find . -maxdepth 1 -type d
.
./images
./components

4 두 개의 파일 동시에 찾기

[root@koreanpol vector]# find -name "a.c" -o -name "b.c"
./a.c
./b.c

5 같이 보기

6 참고 자료

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}