findutils-desc.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <sect2>
  2. <title>Contents</title>
  3. <para>
  4. The Findutils package contains the find, locate, updatedb and xargs
  5. 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 you're looking for a file this
  21. program will scan the database and tell you exactly where the files you
  22. requested are located. This only makes sense if your locate database is
  23. fairly up-to-date else it will provide you with 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 you specify it not to) 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 so
  33. that you are ensured of a database that is up-to-date.
  34. </para>
  35. </sect3>
  36. <sect3><title>Xargs</title>
  37. <para>
  38. The xargs command applies a command to a list of files. If you need to
  39. perform the same command on multiple files, you can create a file 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. </sect2>