2
0

gnunet-directory.1 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. .\" This file is part of GNUnet.
  2. .\" Copyright (C) 2001-2019 GNUnet e.V.
  3. .\"
  4. .\" Permission is granted to copy, distribute and/or modify this document
  5. .\" under the terms of the GNU Free Documentation License, Version 1.3 or
  6. .\" any later version published by the Free Software Foundation; with no
  7. .\" Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
  8. .\" copy of the license is included in the file
  9. .\" FDL-1.3.
  10. .\"
  11. .\" A copy of the license is also available from the Free Software
  12. .\" Foundation Web site at http://www.gnu.org/licenses/fdl.html}.
  13. .\"
  14. .\" Alternately, this document is also available under the General
  15. .\" Public License, version 3 or later, as published by the Free Software
  16. .\" Foundation. A copy of the license is included in the file
  17. .\" GPL3.
  18. .\"
  19. .\" A copy of the license is also available from the Free Software
  20. .\" Foundation Web site at http://www.gnu.org/licenses/gpl.html
  21. .\"
  22. .\" SPDX-License-Identifier: GPL3.0-or-later OR FDL1.3-or-later
  23. .\"
  24. .Dd February 25, 2012
  25. .Dt GNUNET-DIRECTORY 1
  26. .Os
  27. .Sh NAME
  28. .Nm gnunet-directory
  29. .Nd display directories
  30. .Sh SYNOPSIS
  31. .Nm
  32. .Op Fl c Ar FILENAME | Fl -config= Ns Ar FILENAME
  33. .Op Fl h | -help
  34. .Op Fl L Ar LOGLEVEL | Fl -loglevel= Ns Ar LOGLEVEL
  35. .Op Fl v | -version
  36. .Ao Ar FILENAME Ac
  37. .Sh DESCRIPTION
  38. .Nm
  39. lists the contents of one or more GNUnet directories.
  40. A GNUnet directory is a binary file that contains a list of GNUnet file-sharing URIs and meta data.
  41. The names of the directory files must be passed as command-line arguments to gnunet-directory.
  42. The options are as follows:
  43. .Bl -tag -width indent
  44. .It Fl c Ar FILENAME | Fl -config= Ns Ar FILENAME
  45. Configuration file to use.
  46. This option is useless, since gnunet-directory does not really depend on any configuration options.
  47. .It Fl h | -help
  48. Print the help page.
  49. .It Fl L Ar LOGLEVEL | Fl -loglevel= Ns Ar LOGLEVEL
  50. Change the loglevel.
  51. Possible values for LOGLEVEL are ERROR, WARNING, INFO and DEBUG.
  52. .It Fl v | -version
  53. Print the version number.
  54. .El
  55. .Ss NOTES
  56. A GNUnet directory is a file containing a list of GNUnet URIs and meta data.
  57. The keys can point to files, other directories or files in namespaces.
  58. In other words, a GNUnet directory is similar to UNIX directories.
  59. The difference to tar and zip is that GNUnet directory does not contain the actual files (except if they are really small, in which case they may be inlined), just symbolic (links), similar to directories with symbolic links in UNIX filesystems.
  60. The benefit is that the individual files can be retrieved separately (if desired) and if some of the files are inserted to another node in GNUnet, this just increases their availability but does not produce useless duplicates (for example, it is a better idea to publish a collection of pictures or compressed sound files using a GNUnet directory instead of processing them with archivers such as tar or zip first).
  61. Directories can contain arbitrary meta data for each file.
  62. .Pp
  63. If a directory has missing blocks (for example, some blocks failed to download), GNUnet is typically able to retrieve information about other files in the directory.
  64. Files in a GNUnet directory have no particular order; the GNUnet code that generates a directory can reorder the entries in order to better fit the information about files into blocks of 32k.
  65. Respecting 32k boundaries where possible makes it easier for gnunet-directory (and other tools) to recover information from partially downloaded directory files.
  66. .Pp
  67. At the moment, directories can be created by
  68. .Xr gnunet-fs-gtk 1 ,
  69. and
  70. .Xr gnunet-publish 1 .
  71. Just like ordinary files, a directory can be published in a namespace.
  72. .Pp
  73. GNUnet directories use the (unregistered) mimetype "application/gnunet-directory".
  74. They can show up among normal search results.
  75. The directory file can be downloaded to disk by
  76. .Xr gnunet-download 1
  77. for later processing or be handled more directly by
  78. .Xr gnunet-fs-gtk 1 .
  79. .\".Sh EXAMPLES
  80. .Sh SEE ALSO
  81. .Xr gnunet-download 1 ,
  82. .Xr gnunet-fs-gtk 1 ,
  83. .Xr gnunet-publish 1 ,
  84. .Xr gnunet-search 1
  85. .sp
  86. The full documentation for gnunet is maintained as a Texinfo manual.
  87. If the
  88. .Xr info 1
  89. and gnunet programs are properly installed at your site, the command
  90. .Pp
  91. .Dl info gnunet
  92. .Pp
  93. should give you access to the complete handbook,
  94. .Pp
  95. .Dl info gnunet-c-tutorial
  96. .Pp
  97. will give you access to a tutorial for developers.
  98. .sp
  99. Depending on your installation, this information is also available in
  100. .Xr gnunet 7 and
  101. .Xr gnunet-c-tutorial 7 .
  102. .\".Sh HISTORY
  103. .\".Sh AUTHORS
  104. .Sh BUGS
  105. Report bugs by using
  106. .Lk https://bugs.gnunet.org
  107. or by sending electronic mail to
  108. .Aq Mt gnunet-developers@gnu.org .