"리눅스 파일 찾기"의 두 판 사이의 차이

3번째 줄: 3번째 줄:


==전체 폴더에서 찾기==
==전체 폴더에서 찾기==
;명령어
<source lang='bash'>
<source lang='bash'>
find / -name 파일명
find / -name 파일명
8번째 줄: 9번째 줄:
<source lang='bash'>
<source lang='bash'>
find / -name "파일명"
find / -name "파일명"
</source>
;실행예시
<source lang='dos'>
[root@jmnote ~]# find / -name "*.php"
/var/www/html/index.php
/root/a.php
/tmp/c.php
</source>
</source>



2014년 1월 3일 (금) 00:49 판

리눅스에서 파일 찾기
리눅스 파일 찾기

1 전체 폴더에서 찾기

명령어
find / -name 파일명
find / -name "파일명"
실행예시
[root@jmnote ~]# find / -name "*.php"
/var/www/html/index.php
/root/a.php
/tmp/c.php

2 현재 폴더(+하위폴더)에서 찾기

find ./ -name 파일명
find ./ -name "파일명"

3 같이 보기

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