.\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . .TH "KDB\-INTRODUCTION" "1" "2015-11-19" "" "" . .SH "NAME" \fBkdb\-introduction\fR \- introduction to kdb . .P \fBElektra\fR solves the task of accessing the configuration storage\. Additionally, a tooling gathered around Elektra helps with minor problems that appear every day\. Maybe the administrator needs a cron job that periodically changes the settings of a service\. Maybe the user wants to have an overview of the whole configuration to learn what can be tweaked\. Maybe the developer needs to fully export the configuration the program had when a failure occurred\. These tasks have in common that they become trivial once a programmatic access to a global key database exists\. . .P In this subsection we give an overview of the command\-line tool \fBkdb\fR\. It is part of Elektra\'s environment and performs the mentioned tasks\. \fBkdb\fR consists of individual subprograms\. The programs are independent, but can access a shared part that provides functionality too specific to be in the library \-\- for example, pretty printing of error messages and warnings\. Most parts of this suite are short programs which basically call \fBkdbGet()\fR, do something with the data structure and eventually write it back using \fBkdbSet()\fR\. Note that the command\-line tool \fBkdb\fR should not be confused with the class \fBKDB\fR\. . .P \fBkdb\fR was rewritten as part of this thesis with a new architecture\. Now every part of the application suite will be able to accept its own command line arguments and will have its own documentation\. Also a completely new feature \fBmount\fR arose\. . .P Only a few commands are enough for daily use\. We can retrieve a key by: . .IP "" 4 . .nf > kdb get user/keyname . .fi . .IP "" 0 . .P We store a key permanently with a value given by: . .IP "" 4 . .nf > kdb set user/keyname value . .fi . .IP "" 0 . .P We list all available keys arranged below a key by: . .IP "" 4 . .nf > kdb ls user/keyname . .fi . .IP "" 0 . .P Many other tools beside \fBkdb\fR are possible\. They may be more convenient depending on the situation\. Preference dialogues, graphical editors, web\-interfaces and web services can all provide access to the global key database\.