⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 findutils.html

📁 lfs3.1 从源代码构建linux。html版本。
💻 HTML
字号:
<HTML><HEAD><TITLE>Findutils</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.63"><LINKREL="HOME"TITLE="Linux From Scratch"HREF="../index.html"><LINKREL="UP"TITLE="Package descriptions"HREF="../appendixa/appendixa.html"><LINKREL="PREVIOUS"TITLE="Man-pages"HREF="../appendixa/man-pages.html"><LINKREL="NEXT"TITLE="Ncurses"HREF="../appendixa/ncurses.html"></HEAD><BODYCLASS="sect1"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Linux From Scratch: Version 3.1</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="../appendixa/man-pages.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Appendix A. Package descriptions</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="../appendixa/ncurses.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="sect1"><H1CLASS="sect1"><ANAME="aa-findutils">A.22. Findutils</A></H1><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN5136">A.22.1. Contents</A></H2><P>The Findutils package contains the bigram, code, find, frcode, locate, updatedb and xargs programs.</P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN5139">A.22.2. Description</A></H2><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN5141">A.22.2.1. bigram</A></H3><P>bigram is used together with code to produce older-style locate databases. To learn more about these last three programs, read the locatedb.5 manual page.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN5144">A.22.2.2. code</A></H3><P>code is the ancestor of frcode. It was used in older-style locate databases.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN5147">A.22.2.3. find</A></H3><P>The find program searches for files in a directory hierarchy which matcha certain criteria. If no criteria is given, it lists all files in thecurrent directory and its subdirectories.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN5150">A.22.2.4. frcode</A></H3><P>updatedb runs a program called frcode to compress the list of file namesusing front-compression, which reduces the database size by a factor of4 to 5.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN5153">A.22.2.5. locate</A></H3><P>Locate scans a database which contain all files and directories on afilesystem. This program lists the files and directories in thisdatabase matching a certain criteria. If a user is looking for a file thisprogram will scan the database and tell him exactly where the files herequested are located. This only makes sense if the locate database isfairly up-to-date else it will provide out-of-date information.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN5156">A.22.2.6. updatedb</A></H3><P>The updatedb program updates the locate database. It scans the entirefile system (including other file system that are currently mountedunless it is told not to do so) and puts every directory and file it findsinto the database that's used by the locate program which retrieves thisinformation. It's good practice to update this database once a day tohave it up-to-date whenever it is needed.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN5159">A.22.2.7. xargs</A></H3><P>The xargs command applies a command to a list of files. If there is a need to perform the same command on multiple files, a file can be created that contains all these files (one per line) and use xargs to perform thatcommand on the list.</P></DIV></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="../appendixa/man-pages.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../index.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="../appendixa/ncurses.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Man-pages</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../appendixa/appendixa.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Ncurses</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -