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 的大作中提到】
: 贴下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 的大作中提到】
: 贴下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.
相关阅读
技术人员如何"正确"的浪费时间?疯狂的信用卡Bonus, $500现金或两张美国国内机票(往返)xmbc里面的搜狐很多节目和链接对不上啊大家帮帮忙看看为何如此。ipad2买了两个月求推荐给老人用的iPad2 appios5 已经相当不错了Notification center支持widgetApple gives in on subscription policy我觉得win8 tablet有前途新买一手机号,打原号码还能听到通,该怎么办?The worst of WWDC announcements卖肾买苹果,这样的粉丝估计工作死想都想不到Anybody modified IMEI of IPhone?带回中国的IPAD要买有3G功能的吗?WWDC keynote is online请问在哪里可以找限免的ipad app啊?Mac OS X is deadmacbook pro, 15 inch电池问题MacBook + iPad = 死机?