findutils-desc.xml 2.2 KB

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