GNUNET-SEARCH(1) | General Commands Manual | GNUNET-SEARCH(1) |
gnunet-search
— a
command line interface to search for content on GNUnet
gnunet-search |
[-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 ]
⟨KEYWORD⟩ ⟨+KEYWORD⟩ |
⟨URI⟩
⟨+URI⟩ |
Search 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. The options
are as follows:
-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
gnunet://fs/sks/NAMESPACE/IDENTIFIER
For a keyword search, use
gnunet://fs/ksk/KEYWORD[+KEYWORD]*
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.
~/.config/gnunet.conf 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
Mime-type: text/plain
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 gnunet-publish(1) on how to supply meta-data by hand.
gnunet-download(1), gnunet-fs-gtk(1), gnunet-publish(1), gnunet.conf(5)
The full documentation for gnunet is maintained as a Texinfo manual. If the info(1) and gnunet programs are properly installed at your site, the command
info gnunet
should give you access to the complete handbook,
info gnunet-c-tutorial
will give you access to a tutorial for developers.
Depending on your installation, this information is also available in gnunet(7) and gnunet-c-tutorial(7).
Report bugs by using https://bugs.gnunet.org or by sending electronic mail to <gnunet-developers@gnu.org>.
February 25, 2012 | Debian |