aboutsummaryrefslogtreecommitdiff
path: root/doc/man/gnunet-search.1
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/gnunet-search.1')
-rw-r--r--doc/man/gnunet-search.172
1 files changed, 72 insertions, 0 deletions
diff --git a/doc/man/gnunet-search.1 b/doc/man/gnunet-search.1
new file mode 100644
index 000000000..5f6fffedd
--- /dev/null
+++ b/doc/man/gnunet-search.1
@@ -0,0 +1,72 @@
1.TH GNUNET-SEARCH "1" "6 Sep 2009" "GNUnet"
2.SH NAME
3gnunet\-search \- a command line interface to search for content on GNUnet
4.SH SYNOPSIS
5.B gnunet\-search
6[\fIOPTIONS\fR] [+]\fIKEYWORD\fR [[+]\fIKEYWORD\fR]*
7
8.B gnunet\-search
9[\fIOPTIONS\fR] [+]\fIURI\fR
10.SH DESCRIPTION
11.PP
12Search for content on GNUnet. The keywords are case\-sensitive. gnunet\-search can be used both for a search in the global namespace as well as for searching a private subspace.
13.TP
14\fB\-a \fILEVEL\fR, \fB\-\-anonymity=\fILEVEL\fR
15The \fB-a\fR option can be used to specify additional anonymity constraints. If set to 0, GNUnet will try to download the file as fast as possible without any additional slowdown for anonymous routing. Note that you may still have some amount of anonymity depending on the current network load and the power of the adversary. Use at least 1 to force GNUnet to use anonymous routing.
16
17This option can be used to limit requests further than that. In particular, you can require GNUnet to have a certain amount of cover traffic from other peers before sending your queries. This way, you can gain very high levels of anonymity \- at the expense of much more traffic and much higher latency. So set this option to values beyond 1 only if you really believe you need it.
18
19The definition of ANONYMITY\-RECEIVE is the following: If the value v is 0, anonymous routing is not required. For 1, anonymous routing is required, but there is no lower bound on how much cover traffic must be present. For values > 1 and < 1000, it means that if GNUnet routes n bytes of messages from foreign peers, it may originate n/v bytes of queries in the same time\-period. The time\-period is twice the average delay that GNUnet deferrs forwarded queries. If the value v is >= 1000, it means that if GNUnet routes n bytes of QUERIES from at least (v % 1000) peers, it may originate n/v/1000 bytes of queries in the same time\-period.
20
21The default is 1 and this should be fine for most users. Also notice that if you choose values above 1000, you may end up having no throughput at all, especially if many of your fellow GNUnet\-peers do the same.
22
23.TP
24\fB\-c \fIFILENAME\fR, \fB\-\-config=\fIFILENAME\fR
25use config file (defaults: ~/.gnunet/gnunet.conf)
26.TP
27\fB\-h\fR, \fB\-\-help\fR
28print help page
29.TP
30\fB\-L \fILOGLEVEL\fR, \fB\-\-loglevel=\fILOGLEVEL\fR
31Change the loglevel. Possible values for LOGLEVEL are
32ERROR, WARNING, INFO and DEBUG.
33.TP
34\fB\-o \fIPREFIX\fR, \fB\-\-output=\fIPREFIX\fR
35Writes the encountered (unencrypted) RBlocks or SBlocks to files with name PREFIX.XXX, where XXX is a number. This is useful to keep search results around.
36.TP
37\fB\-v\fR, \fB\-\-version\fR
38print the version number
39.SH NOTES
40
41You can run gnunet\-search with an URI instead of a keyword. The URI can have the format for a namespace search or for a keyword search. For a namespace search, the format is gnunet://fs/sks/NAMESPACE/IDENTIFIER. For a keyword search, use gnunet://ecrs/ksk/KEYWORD[+KEYWORD]*. If the format does not correspond to a GNUnet URI, GNUnet will automatically assume that keywords are supplied directly.
42
43If multiple keywords are passed, gnunet-search will look for content matching any of the keywords. The prefix "+" makes a keyword mandatory.
44
45# gnunet\-search "Das Kapital"
46
47searches for content matching the keyword "Das Kapital". Whereas
48
49# gnunet\-search +Das +Kapital
50
51Searches for content matching both mandatory keywords "Das" and "Kapital".
52
53Search results are printed by gnunet\-search like this:
54.P
55.ad l
56 gnunet\-download \-o "COPYING" gnunet://fs/chk/HASH1.HASH2.SIZE
57
58 Description: The GNU Public License
59
60 Mime-type: text/plain
61.ad b
62
63The first line contains the command to run to download the file. The suggested filename in the example is COPYING. The GNUnet URI consists of the key and query hash of the file and finally the size of the file. After the command to download the file GNUnet will print meta\-data about the file as advertised in the search result, here "The GNU Public License" and the mime\-type (see the options for gnunet\-insert on how to supply meta-data by hand).
64
65.SH FILES
66.TP
67~/.gnunet/gnunet.conf
68GNUnet configuration file; specifies the default value for the timeout
69.SH "REPORTING BUGS"
70Report bugs to <https://gnunet.org/bugs/> or by sending electronic mail to <gnunet-developers@gnu.org>
71.SH "SEE ALSO"
72\fBgnunet\-gtk\fP(1), \fBgnunet\-publish\fP(1), \fBgnunet\-download\fP(1), \fBgnunet\-pseudonym\fP(1), \fBgnunet.conf\fP(5), \fBgnunetd\fP(1)