findutils-desc.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <sect2>
  2. <title>Contents</title>
  3. <para>The Findutils package contains the find, locate, updatedb, xargs,
  4. frcode, code and bigram programs.</para>
  5. </sect2>
  6. <sect2><title>Description</title>
  7. <sect3><title>Find</title>
  8. <para>The find program searches for files in a directory hierarchy which match
  9. a certain criteria. If no criteria is given, it lists all files in the
  10. current directory and it's subdirectories.</para>
  11. </sect3>
  12. <sect3><title>Locate</title>
  13. <para>Locate scans a database which contain all files and directories on a
  14. filesystem. This program lists the files and directories in this
  15. database matching a certain criteria. If a user is looking for a file this
  16. program will scan the database and tell him exactly where the files he
  17. requested are located. This only makes sense if the locate database is
  18. fairly up-to-date else it will provide out-of-date information.</para>
  19. </sect3>
  20. <sect3><title>Updatedb</title>
  21. <para>The updatedb program updates the locate database. It scans the entire
  22. file system (including other file system that are currently mounted
  23. unless it is told not to do so) and puts every directory and file it finds
  24. into the database that's used by the locate program which retrieves this
  25. information. It's a good practice to update this database once a day to
  26. have it up-to-date whenever it is needed.</para>
  27. </sect3>
  28. <sect3><title>Xargs</title>
  29. <para>The xargs command applies a command to a list of files. If there is
  30. a need to perform the same command on multiple files, a file can be created
  31. that contains all these files (one per line) and use xargs to perform that
  32. command on the list.</para>
  33. </sect3>
  34. <sect3><title>frcode</title>
  35. <para>updatedb runs a program called frcode to compress the list of file names
  36. using front-compression, which reduces the database size by a factor of
  37. 4 to 5.</para>
  38. </sect3>
  39. <sect3><title>code</title>
  40. <para>code is the ancestor of frcode. It was used in older-style locate
  41. databases.</para>
  42. </sect3>
  43. <sect3><title>bigram</title>
  44. <para>bigram is used together with code to produce older-style locate
  45. databases. To learn more about these last three programs, read the locatedb.5
  46. manual page.</para>
  47. </sect3>
  48. </sect2>