Contents

Views 30611 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
만약 특정 디렉토리 이하에서 network 라는 문자열을 포함한 파일을 찾고싶다면.. 해당 디렉토리에서 모든 파일을 읽어 찾아보아야 하나.. 다음과 같이 find 와 grep 를 파이프로 연결하여 사용하면 쉽게 찾을 수있다. 

# /etc/ 디렉토리 하위에서 'network' 문자열이 포함된 파일 찾기
find /etc/ -type f -exec grep 'network' {} /dev/null \;

# /etc/ 디렉토리 하위의 파일명 '*.conf' 중에서 'network' 문자열이 포함된 파일 찾기
find /etc/ -name '*.conf' -type f -exec grep 'network' {} /dev/null \;


위와 같이 명령어를 타입하면 /etc/ 디렉토리 이하에서 network 라는 문자열을 포함한 모든 파일명과 위치를 listing 해 준다. 


그리고 단순히 특정 단어를 포함한 파일명을 찾고 싶으면 locste 라는 것을 쓰면 된다.
즉, locate ftp 를 하면 ftp 라는 파일명이 포함된 파일들을 listing 해 준다.


?

List of Articles
No. Category Subject Author Date Views
154 System/OS [windows] 98/ME 속도 빠르게 튜닝(부팅,메모리,레지스터) hooni 2003.04.23 50441
153 System/OS [windows] 도스 사용 팁 hooni 2003.04.23 17808
152 System/OS [windows] 여러가지 활용 팁 hooni 2003.04.23 19971
151 System/OS [windows] 배치(bat)파일 제작 방법 hooni 2003.04.23 17004
150 System/OS [linux] 패킷 스니퍼링 hooni 2003.04.23 16317
149 System/OS [linux] 패킷의 소스 주소 바꾸기 hooni 2003.04.23 18786
148 System/OS [linux] iptables 명령어 매뉴얼(options) hooni 2003.04.23 11335
147 System/OS [linux] 간단한 NAT 설정 script hooni 2003.04.23 12597
146 System/OS [linux] 랜카드 2개 설정 & iptables 로 사설 ip.. hooni 2003.04.23 14732
145 System/OS [linux] apache, php, jsp 환경설정하기.. hooni 2003.04.23 15232
144 System/OS [linux] Oracle8.1.6, Mysql+PHP+Zend Optimizer+APACHE+Tomcat(jsp,servlet)+IMAP+gd hooni 2003.04.23 32452
143 System/OS [linux] 특수문자 환경 설정(stty) hooni 2003.04.23 15275
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 17 Next
/ 17