The KFind Handbook

# The KFind Handbook

Dirk Doerflinger `<ddoerflinger@web.de>`

Revision KDE 4.11 (2013-05-29)

Copyright © 2001 Dirk Doerflinger

Legal Notice

KFind is KDE's file find utility.

Chapter 1. Introduction
Introduction

# Chapter 1. Introduction

KFind is the KDE file find utility.

## Launching KFind

The Find Files tool is a useful method of searching for specific files on your computer, or for searching for files that match a pattern. An example of this could include searching for files of a particular type or with certain letters in the filename. You can load this utility in Konqueror (in file manager mode) by selecting Tools → Find File (Ctrl+F) from the menu. If you want to use KFind as a standalone search tool, launch it by using KRunner.

Chapter 2. Finding Files
Finding Files

# Chapter 2. Finding Files

## The Name/Location Tab

When starting KFind, you will see a quite simple window. Type in the name of the file you are searching for in the text box labeled Named:. You can use wildcard matching and a semicolon (“;”) for separating multiple names.

Choose a folder where you want to search by typing it in the field Look in: or by clicking Browse... (you can toggle the display of the hidden files and folder in the dialog using the shortcuts Alt+. or F8) and press Enter or click the Find button. Use the Stop button to cancel a search. A search result can be saved in HTML format or as plain text with the Save As... button.

If Include subfolders is checked all subfolders starting from your chosen folder will be searched too. If you enable Case sensitive search, KFind will only find files with the exact case matching names. Enable the option Show hidden files to include them in your search. Selecting Use files index lets you use the files' index created by the “locate” package to speed-up the search.

You can use the following wildcards for file or folder names:

The Asterisk “*”

  The asterisk stands for any number of missing characters (even zero), that means e.g. searching for `marc*` may find the files `marc`, `marc.png` and `marc_must_not_read_this.kwd`. `mar*.kwd` may find `marketplace.kwd` and `marc_must_not_read_this.kwd`.

The Question Mark “?”

  In contrast to the asterisk, the question mark stands for exactly one character, so `mar?` will find `marc`, but `marc?` will not find anything, as our files are called `marc` and `marc.png`. You can put as many question marks in the term as you want, it will find exactly that number of characters.

The Character Set “[...]”

  This matches any of the characters between the braces.

Of course you can combine two or more wildcard symbols in a search term.

The results of your search will be displayed in the box below. A click with the right mouse button on a selection in this box opens a context menu with a list of actions for the selected files or folders.

The Contents Tab
The Contents Tab

## The Contents Tab

File type

  Here you can specify the type of file you are searching for.

Containing text

  Type in the word or phrase the files you are searching for must contain. Note: If you do this in a large folder or checked Include subfolders in the Name/Location tab, this may take a long time.

  ### Note

  This option will not work for all files listed under File type. Only the following file types are supported:

  - Text files, e.g. source code and `README` files

  - KWord >= 1.2

  - KPresenter >= 1.2

  - KSpread >= 1.2

  - OpenOffice.org Writer / LibreOffice Writer

  - OpenOffice.org Impress / LibreOffice Impress

  - OpenOffice.org Calc / LibreOffice Calc

  - Calligra Words

  - Calligra Sheets

  - Calligra Stage

Case sensitive

  If you enable this option, KFind will only find text in files with the exact case matching, e.g. `MARC` will only match “MARC”, not “Marc”.

Regular expression

  If you have installed the KRegExpEditor tool from playground/utils on the KDE git server, you will have this additional option. Enabling it will allow you to search for a regexp or regular expression. A regexp is a way to specify conditions for your search, and they can be very complex, and equally they can be very powerful. If you are unfamiliar with regular expressions, you can choose Edit button to open KRegExpEditor. This tool allows you to construct your set of conditions graphically, and then generates the expression for you.

  KRegExpEditor is a very useful tool, and can be used from within many KDE applications other than KFind. You can find more information from within its own help file.

Include binary files

  This lets you search in any type of file, even those that usually do not contain text (for example program files and images).

The Properties Tab
The Properties Tab

## The Properties Tab

Here you can refine your search. These are the special refinements you can choose:

Find all files created or modified

  Here you can either enter two dates, between which the files were created or modified, or specify a time period.

File size is

  Here you can specify if the file has to be at least or at most as big as the size you entered in the following box, or else equal to the size.

Files owned by user, Files owned by group

  Here you can specify user and group names as owner of the files.

Chapter 3. Credits and License
Credits and License

# Chapter 3. Credits and License

KFind

Program copyright:

Developers

- Martin Hartig

- Stephan Kulow `(coolo AT kde.org)`

- Mario Weilguni `(mweilguni AT sime.com)`

- Alex Zepeda `(jazepeda AT pacbell.net)`

- Miroslav Flídr `(flidr AT kky.zcu.cz)`

- Harri Porten `(porten AT kde.org)`

- Dima Rogozin `(dima AT mercury.co.il)`

- Carsten Pfeiffer `(pfeiffer AT kde.org)`

- Hans Petter Bieker `(bieker AT kde.org)`

- Waldo Bastian `(bastian AT kde.org)`

Documentation copyright 2001 Dirk Doerflinger `(ddoerflinger AT web.de)`

This documentation is licensed under the terms of the GNU Free Documentation License.

This program is licensed under the terms of the GNU General Public License.

Appendix A. Installation
Installation

# Appendix A. Installation

## How to obtain KFind

KFind is part of the KDE project http://www.kde.org/.

KFind can be found in the kdebase package on ftp://ftp.kde.org/pub/kde/, the main FTP site of the KDE project.

Requirements
Requirements

## Requirements

In order to successfully use KFind, you need KDE 4.x.

Compilation and Installation
Compilation and Installation

## Compilation and Installation

For detailed information on how to compile and install KDE applications see Building and Running KDE Software From Source

Since KDE uses cmake you should have no trouble compiling it. Should you run into problems please report them to the KDE mailing lists.