# 2.4. Configuration

Configuration is normally performed by means of the Preferences dialog; see the user section of this manual for more details. A technical description of kfind configuration follows for interested parties:

Kfind reads configuration parameters from a configuration file (normally `˜/.kde/share/config/kfindrc`).

This file contains information about saving search results, available archivers and other configuration parameters; these parameters can be edited from the `Kfind` Preferences dialog.

General information: the resource file consists of sections. Each section is started by a header title in square braces e.g.`[Saving]`

Information following the header relates to a specific aspect of `Kfind` operation.

Saving configuration: The configuration file holds the filename and format of the file to be used for saving search results. These parameters are stored as follows:

     [Saving]
     Format=HTML
     Filename=/root/result.html

Where `Format` entry can have values `HTML` or `Plain Text`.

Archiver configuration: Archivers available for `kfind` are specified in kfindrc entry `[Archiver Types]` as follows:

     [Archiver Types]
     Archivers=tar;zip;zoo;

And each archiver is detaily described by its own entry:

     [tar]
     ExecOnCreate=tar cf %a -C %d %n
     ExecOnUpdate=tar uf %a -C %d %n
     Comment=Tar

The first line contains the command to be executed when creating a new archive and the second is for updating existing archives. The third one is the comment used for archiver description in Preferences dialog. Variables may be used in these commands, and are denoted by a leading % sign.

The following is a list of legal command line variables:

`%a` The complete name of the archive

`%f` The normal file name

`%d` The parent directory. If the given argument is a file ( not a directory ) then this will give you the directory this file is in.

`%n` The name of the file. If the given argument is a directory then this is the name of this directory.