답변:
man updatedb
'파일'을 검색
내 말 :
FILES
/etc/updatedb.conf
A configuration file. See updatedb.conf(5).
/var/lib/mlocate/mlocate.db
The database updated by default.
실행 파일을 디 컴파일 할 필요가 없습니다! 친절하게 'locate'를 물어보십시오 :-)
업데이트 된 b / locate (GNU findutils) 버전 4.6.0의 경우
locate --statistics
나를 위해 (cygwin에서) 이것은 다음과 같은 someting을 산출합니다
Database /var/locatedb is in the GNU LOCATE02 format.
Database was last modified at 2017:03:13 22:44:31.849172100 +0100
Locate database size: 6101081 bytes
All Filenames: 202075
File names have a cumulative length of 22094021 bytes.
Of those file names,
2591 contain whitespace,
0 contain newline characters,
and 20 contain characters with the high bit set.
Compression ratio 72.39% (higher is better)
데비안에서, 찾기 데이터베이스는 기본적으로
/var/cache/locate/locatedb
mlocate검색 인덱서로 사용 하는 경우 :
mlocate 데이터베이스는 다음 위치에 저장됩니다
/var/lib/mlocate/mlocate.db
참조 : 업데이트 된 데이터베이스 내용을보고 특정 파일 / 경로를 제외하려면 어떻게해야합니까?
[2017 년 개정] : 위 답변 참조 : locate --statistics works.
/etc/updatedb.conf가 있으면 여기에서 확인할 수 있습니다. 난 아니야 locate에 대한 매뉴얼 페이지를 읽을 수 있습니다. 기본 위치는 / var / cache / locate / locatedb입니다. 내 것이 없습니다. locate 자체를 사용하여 "updatedb"또는 "locatedb"라는 파일을 검색 할 수 있습니다. Windows 7에서 Cygwin을 사용하고 있습니다.
mlocate.db?
$ sudo strace updatedb 2>&1 | grep -o "^open.*O_RDWR.*"