Section: User Commands (1)
- a command line interface to search for content on GNUnet
[-a LEVEL | --anonymity= LEVEL
[-c FILENAME | --config= FILENAME
[-h | -help
[-L LOGLEVEL | --loglevel= LOGLEVEL
[-l FILENAME | --logfile= FILENAME
[-o FILENAME | --output= FILENAME
[-n | -no-network
[-N VALUE | --results= VALUE
[-t DELAY | --timeout= DELAY
[-v | -version
[-V | -verbose
Ao KEYWORD Ac Ao +KEYWORD Ac | Ao Ar URI Ac Ao Ar +URI Ac
Search for content on GNUnet.
The keywords are case-sensitive.
can be used both for a search in the global namespace as well as for searching a private subspace.
The options are as follows:
- -a LEVEL | --anonymity= LEVEL
This option can be used to specify additional anonymity constraints.
The default is 1.
If set to 0, GNUnet will publish the file non-anonymously and in fact sign the advertisement for the file using your peer's private key.
This will allow other users to download the file as fast as possible, including using non-anonymous methods (discovery via DHT and CADET transfer).
If you set it to 1 (default), you use the standard anonymous routing algorithm (which does not explicitly leak your identity).
However, a powerful adversary may still be able to perform traffic analysis (statistics) to over time discovery your identity.
You can gain better privacy by specifying a higher level of anonymity (using values above 1).
This tells FS that it must hide your own requests in equivalent-looking cover traffic.
This should confound an adversaries traffic analysis, increasing the time and effort it would take to discover your identity.
However, it also can significantly reduce performance, as your requests will be delayed until sufficient cover traffic is available.
The specific numeric value (for anonymity levels above 1) is simple:
Given an anonymity level L (above 1), each request FS makes on your behalf must be hidden in L-1 equivalent requests of cover traffic (traffic your peer routes for others) in the same time-period.
The time-period is twice the average delay by which GNUnet artificially delays traffic.
Note that regardless of the anonymity level you choose, peers that cache content in the network always use anonymity level 1.
- -c FILENAME | --config= FILENAME
Use the configuration file
- -h | -help
Print the help page.
- -L LOGLEVEL | --loglevel= LOGLEVEL
Change the loglevel.
Possible values for LOGLEVEL are ERROR, WARNING, INFO and DEBUG.
- -l FILENAME | --logfile= FILENAME
Write logs to
- -o FILENAME | --output= FILENAME
Writes a GNUnet directory containing all of the search results to
- -n | -no-network
Only search locally, do not forward requests to other peers.
- -N VALUE | --results= VALUE
Automatically terminate the search after receiving
- -t DELAY | --timeout= DELAY
Automatically timeout search after
The value given must be a number followed by a space and a time unit, for example "500 ms".
Note that the quotes are required on the shell.
Otherwise the search runs until gnunet-search is aborted with CTRL-C.
- -v | -version
print the version number
- -V | -verbose
print meta data from search results as well
You 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
For a keyword search, use
If the format does not correspond to a GNUnet URI, GNUnet will automatically assume that keywords are supplied directly.
If multiple keywords are passed, gnunet-search will look for content matching any of the keywords.
The prefix "+" makes a keyword mandatory.
GNUnet configuration file; specifies the default value for the timeout
$ gnunet-search "Das Kapital"
Searches for content matching the keyword "Das Kapital".
$ gnunet-search +Das +Kapital
Searches for content matching both mandatory keywords "Das" and "Kapital".
Search results are printed by gnunet-search like this:
gnunet-download -o "COPYING" gnunet://fs/chk/HASH1.HASH2.SIZE
Description: The GNU General Public License
The 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.
The meta-data here is the description ("The GNU General Public License") and the mime-type ("text-plain").
See the options for
on how to supply meta-data by hand.
The full documentation for gnunet is maintained as a Texinfo manual.
and gnunet programs are properly installed at your site, the command
should give you access to the complete handbook,
will give you access to a tutorial for developers.
Depending on your installation, this information is also available in
Report bugs by using
or by sending electronic mail to
Aq Mt email@example.com