파일_검색

문서의 이전 판입니다!


파일 검색

기본 명령어 형식은 find [찾을 디렉토리] [찾기 옵션] [찾은 후 실행할 작업]

전체 하드 디스크에서 검색

명령어 : find / -name '*.확장자'

[root@localhost ~]# find / -name '*.c'
/usr/lib/firmware/isci/create_fw.c
/usr/share/doc/systemd/sd-readahead.c
/usr/share/doc/ppp-2.4.5/scripts/chatchat/chatchat.c
현재 경로에서 디스크 검색

명령어 : find -name '*.확장자'

[root@localhost ~]# find -name '*.c'
./sample.c

검색 시 해당 파일이 없는 상태에서는 문구조차 나오지 않는다.

[root@localhost ~]# find -name '*.c

[root@localhost ~]#


로그인하면 댓글을 남길 수 있습니다.
  • 파일_검색.1423621450.txt.gz
  • 마지막으로 수정됨: 2015/06/18 15:49
  • (바깥 편집)