5.6. Finding Something on Your Computer

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

Figure 5.6. Finding Files

Finding Files

5.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:


    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.

5.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 where you want 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 3.1, “Getting Started with the Bash Shell”.