locate *.log
=> 이 컴퓨터에 있는 전체 로그파일 검색

검색작업을 수행하면 디렉토리를 뒤지지 않고 데이터베이스를 뒤짐
데이터베이스를 뒤져서 정보를 더 빠르게 보여줌

find
locate보다는 성능은 떨어질 수 있으나 현재 상태의 실시간 파일정보를 가져옴
다양한 사용법이 있어서 사용하기 좋음.

* find 사용예제 링크
https://www.tecmint.com/35-practical-examples-of-linux-find-command/

35 Practical Examples of Linux Find Command

The Linux find command is one of the most important and frequently used command command-line utility in Unix-like operating systems. The find command is used to search and locate the list of files and directories based on conditions you specify for files t

www.tecmint.com


** 내가 자주 사용하는 find 명령어

find . / -name "*.*" | xargs grep --color=auto "찾는텍스트값"

+ Recent posts