seo92iy
리눅스 - 파일을 찾는 법 본문
locate
locate *.log *.log인 파일 모두 찾기
디렉토리를 검색하는 것이 아니라 DB를 검색한다.
find
sudo find / -name *.log *.log라는 이름으로 루트디렉토리부터 검색
루트디렉토리 / 홈디렉토리 ~ 현재디렉토리 .
-type f = 파일 타입
디렉토리 검색
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
whereis
$PATH(환경 변수) : 우리가 어디서건 ls 같은 명령어를 디렉토리 상관없이 사용할 수 있는 이유
'Spring Framework > 생활코딩' 카테고리의 다른 글
리눅스 - 항상 실행 (0) | 2021.09.03 |
---|---|
리눅스 - 백그라운드 실행 (0) | 2021.09.03 |
리눅스 - 프로세스 (0) | 2021.09.02 |
리눅스 - 디렉토리의 구조 (0) | 2021.09.02 |
리눅스 - Shell script (0) | 2021.09.02 |