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 "찾는텍스트값"
'IT > 리눅스&서버' 카테고리의 다른 글
VirtualBox로 Linux환경 구성하기 (CentOS) (0) | 2021.10.12 |
---|---|
리눅스 디렉토리 구조 (linux directory structure) (0) | 2021.10.12 |
리눅스 쉘 스크립트(shell script) 기본예제 (0) | 2021.06.18 |
리눅스 커널(Kernel) 과 쉘(shell) (0) | 2020.12.21 |
[리눅스 명령어] 파일 다운로드 wget / git (0) | 2020.12.19 |