1.6 Finding Data on your Computer or in the File System

KDE provides more than one application for finding data on your computer or in the file system. With Kerry, you can very easily search your personal information space (usually your home folder) to find documents, e-mails, Web history, IM/ITC conversations, source code, images, music files, applications, and much more. For more information, refer to Section 10.0, Searching with Kerry.

With KFind, you can locate files on your computer or in the file system using a variety of search criteria, such as file content, dates, owner, or file size. Start it from the main menu with Applications > Find Files/Folders. Alternatively, press Alt+F2 and enter kfind.

Figure 1-14 Finding Files with KFind

1.6.1 Finding Files

To perform a search for certain filenames, proceed as follows:

  1. Start KFind from the main menu or command line.

  2. Click the Name/Location tab to perform a basic search.

  3. Specify the name of the file to find in Named. You can use the following wild cards:

    Asterisk

    The asterisk (*) stands for any number of missing characters (even zero). For example, searching for marc* can find the files marc, marc.png, and marc_must_not_read_this.kwd. Searching for mar*.kwd can find marketplace.kwd and marc_must_not_read_this.kwd.

    Question Mark

    The question mark (?) stands for exactly one character. For example, searching for mar? can find marc, but marc? cannot find anything if your files are named marc and marc.png. You can put as many question marks in the search term as you want. It finds exactly that number of characters.

    You can combine those two wild card symbols in any search term.

  4. Specify the folder to search in Look In or click Browse to find the folder you want. Select Include Subfolders to also search all subfolders starting from your specified folder.

  5. Press Enter or click Find.

1.6.2 Performing an Advanced File Search

For a more detailed search, you can also specify further options, such as a text the file to find must contain:

  1. Start KFind from the main menu or the command line.

  2. Click the Name/Location tab.

  3. Specify the name of the file to find in Named.

  4. Specify the folder in which to search in Look In or click Browse to find the folder.

  5. Click the Contents tab.

  6. In File Type, specify the type of file to find.

  7. In Containing Text, enter the word or phrase the file you are searching for must contain.

  8. If you want to specify further options, click the Properties tab and choose the options you want. If you hold the mouse pointer over the options or fields, a short description is displayed.

  9. Click Find to perform the search.

For detailed information about the search options available, refer to the KFind online help.

For advanced searches, you may want to use search patterns or regular expressions. KRegExpEditor offers search options based on regular expressions. You can install KRegExpEditor with YaST as the package kdeutils3-extra. For more information about search patterns and the use of wild cards or regular expressions, refer to Section 19.1, Using the Bash Shell, (↑ Reference ).