Ubuntu – Exclude directory from Unity Search

directorysearchunity

I am re-asking this question:
How to remove a specific folder from the Ubuntu search?
because I do not believe it was a duplicate, or was answered in that post.

This has nothing to do with Zeitgeist OR recent files. (I already have zeitgeist and file history monitoring disabled.)

I would like to know if it is possible to prevent Unity Search from displaying the contents of a specific directory in its search results – ie: not to include that directory when searching. The same way you can tell it not to include online search results.

Thanks
/H

Best Answer

  • Actually I think this is a built-in feature. It's a common thing to need to exclude directories from your search. Here's how to configure it:

    Open the system settings
    Select "Security & Privacy" Go to the tab named "Files & Applications"

    You should see a box named "Exclude", use the "+" and "-" buttons to update this. Anything NOT excluded will be used in the search.

    Note that you will also need to "Clear Usage Data" from the "Files & Applications" dialog in order to remove previously browsed files and folders from the Dash Search. By default Dash Search will include your historical file usage even if you have explicitly excluded these files.