kdb(1)

kdb1

Elektra key database command line administration tool

Usage

kdb get [-dlr] key/name

kdb set [-t type] [-d] [-c "A comment about this key"] [-m mode] [-u uid] [-g gid] key/name "the value"

kdb set [-t type] [-m mode] [-c "A comment"] key/name -- "the value"

kdb set [-t type] [-b file] key/name

kdb ls [-lRfvs] [{key/dir | key/name}]

kdb ls [-lRfvx] [{key/dir | key/name}] > keys.xml

kdb edit [-R] [{key/dir | key/name}]

kdb rm key/name

kdb mv key/src key/dest

kdb ln key/src key/dest

kdb export [-f] system/some/tree.root > [file.xml]

kdb import < file.xml

kdb import file.xml

set

ls

ln

mv

rm

edit

Options.PP -R

Environment

KDB_ROOT if defined, prepends it to key names.

KDB_BACKEND defines the name of another backend plugin library to use ExamplesSetting Keys.PP bash$kdb set -c "My first key" user/example/key "Some nice value"

bash$kdb set user:luciana/example/key -- "Some - nice - value with dashes"

bash#KDB_ROOT=user:http/sw/httpd kdb set -u nobody -g http key "Some value"

bash$kdb set -b image.png -t bin user/example/binaryKey

bash$kdb set -b file.txt user/example/regularKey

bash#kdb set -t link system/sw/XFree/current system/sw/XFree/handmade Getting Keys.PP bash$KDB_ROOT=user/example kdb get some/key/name

bash$eval `kdb get -s user/env/env1/PS1`

bash$KDB_BACKEND=gconf kdb get user/sw/gnome-terminal/global/active_encodings Listing.PP bash$kdb ls -laR user:valeria

bash$kdb ls -lR system/sw/xorg/current

bash$KDB_ROOT=system/sw kdb ls -lR xorg

bash$KDB_BACKEND=fstab kdb ls -Rv system/filesystems

bash$eval `kdb ls -Rvs user/env/env2` Miscelaneous.PP bash#kdb ln system/sw/xorg/handmade system/sw/xorg/current

bash#kdb mv system/sw/xorg/current system/sw/xorg/old

bash#kdb rm system/inittab/rc4

bash$KDB_BACKEND=gconf kdb rm user/gconfKey XML Import and Export.PP bash#kdb export user/sw/app | sed -e 's|/app/|/app2/|g' | kdb import

bash#KDB_ROOT=system/sw kdb export myapp > myappconf.xml

bash#kdb import myappconf.xml

bash$KDB_BACKEND=gconf kdb export user/sw

Releases

5 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0–6.0
  3. 7

Author

Avi Alkalay <avi at unix.sh>
Linux Market Developer, Senior IT and Software Architect, IBM Linux Impact Team :: ibm.com/linux

Author.

From elektra-bin 0.7.1-1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.