locate -S

locate -S

-S, –statistics

Write statistics about each read database to standard output instead of searching for files and

exit successfully.

ということで,実行してみた(desktop pc, Archlinux).

Database /var/lib/mlocate/mlocate.db:
37072 directories
477783 files
38478877 bytes in file names
10420776 bytes used to store database


ちなみに,ほとんど起動しない ubuntu でやってみたら表示形式が違った.

Database /var/cache/locate/locatedb is in the GNU LOCATE02 format.
Locate database size: 673886 bytes
All Filenames: 67083
File names have a cumulative length of 2788565 bytes.
Of those file names,
193 contain whitespace,
0 contain newline characters,
and 10 contain characters with the high bit set.
Compression ratio 75.83% (higher is better)


locate –versionの出力.

mlocate 0.22
Copyright (C) 2007 Red Hat, Inc. All rights reserved.
This software is distributed under the GPL v.2.
This program is provided with NO WARRANTY, to the extent permitted by law.
locate (GNU findutils) 4.4.0
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Built using GNU gnulib version e5573b1bad88bfabcda181b9e0125fb0c52b7d3b