h*y
2 楼
我用/usr/libexec/locate.updatedb 建立了搜索数据库,
但似乎只能搜到某些文件。。
可是很多文件找不到。。比如我们home目录下完全搜不到。。
为什么啊
记得以前是好使的
但似乎只能搜到某些文件。。
可是很多文件找不到。。比如我们home目录下完全搜不到。。
为什么啊
记得以前是好使的
f*u
5 楼
贴下locate命令的帮助最后一段。你需要关注的是第一和第二条。
$man locate
...
BUGS
The locate program may fail to list some files that are present, or may
list files that have been removed from the system. This is because locate
only reports files that are present in the database, which is typically only
regenerated once a week by the /System/Library/LaunchDaemons/com.apple.
locate.plist job. Use find(1) to locate files that are of a more transitory
nature.
The locate database is typically built by user ``nobody'' and the
locate.updatedb(8) utility skips directories which are not readable for user
``nobody'', group ``nobody'', or world. For example, if your HOME
directory is not world-readable, none of your files are in the database.
The locate database is not byte order independent. It is not possible
to share the databases between machines with different byte order. The
current locate implementation understands databases in host byte order or
network byte order if both architectures use the same integer size. So on a
FreeBSD/i386 machine (little endian), you can read a locate database which
was built on SunOS/sparc machine (big endian, net).
The locate utility does not recognize multibyte characters.
$man locate
...
BUGS
The locate program may fail to list some files that are present, or may
list files that have been removed from the system. This is because locate
only reports files that are present in the database, which is typically only
regenerated once a week by the /System/Library/LaunchDaemons/com.apple.
locate.plist job. Use find(1) to locate files that are of a more transitory
nature.
The locate database is typically built by user ``nobody'' and the
locate.updatedb(8) utility skips directories which are not readable for user
``nobody'', group ``nobody'', or world. For example, if your HOME
directory is not world-readable, none of your files are in the database.
The locate database is not byte order independent. It is not possible
to share the databases between machines with different byte order. The
current locate implementation understands databases in host byte order or
network byte order if both architectures use the same integer size. So on a
FreeBSD/i386 machine (little endian), you can read a locate database which
was built on SunOS/sparc machine (big endian, net).
The locate utility does not recognize multibyte characters.
j*I
6 楼
这个第二条是所有unix locate的bug还是apple locate的bug?
may
only
transitory
【在 f****u 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 贴下locate命令的帮助最后一段。你需要关注的是第一和第二条。
: $man locate
: ...
: BUGS
: The locate program may fail to list some files that are present, or may
: list files that have been removed from the system. This is because locate
: only reports files that are present in the database, which is typically only
: regenerated once a week by the /System/Library/LaunchDaemons/com.apple.
: locate.plist job. Use find(1) to locate files that are of a more transitory
: nature.
may
only
transitory
【在 f****u 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 贴下locate命令的帮助最后一段。你需要关注的是第一和第二条。
: $man locate
: ...
: BUGS
: The locate program may fail to list some files that are present, or may
: list files that have been removed from the system. This is because locate
: only reports files that are present in the database, which is typically only
: regenerated once a week by the /System/Library/LaunchDaemons/com.apple.
: locate.plist job. Use find(1) to locate files that are of a more transitory
: nature.
相关阅读
新iphone哪天发布?免费拿最高600刀 bonus+Discover 12000mile+10刀礼品卡若干(自取)apple back to school在店里买还是在网上买好iphone能连接打印机吗涉谷的iPad长队Talking about Lenovo请问今天能去店里买到iphone 4了么?今日目睹两个iPad in the wildnow I know why men should love ipodJOBS评论富士康事件:“远远低于中国的整体自杀率“ (转载)回国前急切请教MAC的那个rebate具体情况ipad 能够装双操作系统吗?有没办法用iphone而不加data plan问个macbook重装的问题哈哈。。果然是些露出来的样子。。att plan change弱问sunpinyin如何输入顿号Att 又发短信给iphone加data plan关于在itouch上用VPN手機屏幕无缘无故变成血红色, 半个月里一连十几次了