「findutils」

在GNU/Linux下,编译安装Findutils包

如果要手动编译的话,可以参看LFS/6.53. Findutils-4.6.0: http://www.linuxfromscratch.org/lfs/view/7.10/chapter06/findutils.html

在maxOS下,编译安装Findutils包

./configure –prefix=/gnu –localstatedir=/gnu/var/lib/locate

make

make install

安装的命令列表

Findutils,包含了一系列用于查找文件的程序。这些程序可以递归搜索目录树并创建、维护、搜索数据库(通常比递归查找更快,但数据库要记得更新)。

code
Was formerly used to produce locate databases; it is the ancestor of frcode

find
在指定的目录树中搜索满足条件的文件。

locate
Searches through a database of file names and reports the names that contain a given string or match a given pattern

oldfind
Older version of find, using a different algorithm

updatedb
Updates the locate database; it scans the entire file system (including other file systems that are currently mounted, unless told not to) and puts every file name it finds into the database

xargs
从标准输入中读取数据,然后构建命令来执行。

参考文献