{"id":2969,"date":"2018-11-09T13:36:34","date_gmt":"2018-11-09T13:36:34","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=2969"},"modified":"2018-11-12T01:22:54","modified_gmt":"2018-11-12T01:22:54","slug":"how-to-use-fsearch-to-quickly-search-files-in-linux","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/11\/09\/how-to-use-fsearch-to-quickly-search-files-in-linux\/","title":{"rendered":"How to Use FSearch to Quickly Search Files in Linux"},"content":{"rendered":"<p>Search functions in Linux file managers aren\u2019t all that great. Most are passable with minimal functionality and fairly slow search times, but there really aren\u2019t any exceptional ones. Even KDE\u2019s Baloo, that spends a ton of time indexing files, really doesn\u2019t perform the way you\u2019d hope a modern search would.<\/p>\n<p>Thankfully, a better option has popped up in the form of FSearch. <a href=\"https:\/\/cboxdoerfer.github.io\/fsearch\/\">FSearch<\/a> was created by a developer who was tired of the poor search performance in Linux file managers and decided to take matters into his own hands. While you might not feel that a standalone file search is necessary, you\u2019ll probably change your mind pretty quickly after trying FSearch out.<\/p>\n<h2>Installation<\/h2>\n<p>FSearch is packaged and available in an Ubuntu PPA. That makes things a bit more complicated on other distributions, but it\u2019s very simple on Ubuntu. Debian users can also take advantage of the PPA with a bit of extra work.<\/p>\n<h3>Ubuntu<\/h3>\n<p>The FSearch PPA is like any other. Import it with Apt, and update your sources.<\/p>\n<p>sudo add-apt-repository ppa:christian-boxdoerfer\/fsearch-daily<br \/>\nsudo apt update<\/p>\n<h3>Debian<\/h3>\n<p>If you\u2019re on Debian, you can use the PPA, but it\u2019ll just require a bit of extra work to get set up. First, open a terminal and create a new .list file with sudo.<\/p>\n<p>sudo touch \/etc\/apt\/sources.list.d\/fsearch.list<\/p>\n<p>Open the file with your text editor of choice, and add in the following two lines.<\/p>\n<p>deb http:\/\/ppa.launchpad.net\/christian-boxdoerfer\/fsearch-daily\/ubuntu cosmic main<br \/>\ndeb-src http:\/\/ppa.launchpad.net\/christian-boxdoerfer\/fsearch-daily\/ubuntu cosmic main<\/p>\n<p>Now, import the keys for the repository.<\/p>\n<p>sudo apt-key adv &#8211;keyserver keyserver.ubuntu.com &#8211;recv-keys 75555AFF5215AD9DBFD8CDB952B2FFB2DC496F40<\/p>\n<p>The only thing left to do is update Apt.<\/p>\n<p>You\u2019re ready to start installing FSearch.<\/p>\n<p>sudo apt install fsearch-trunk<\/p>\n<h3>Arch<\/h3>\n<p>FSearch is actually available in the AUR. You can use whichever AUR install process you\u2019re most comfortable with to add it to your system. You can find the details on <a href=\"https:\/\/aur.archlinux.org\/packages\/fsearch-git\/\">FSearch\u2019s AUR page<\/a>.<\/p>\n<h3>Fedora<\/h3>\n<p>Fedora users are going to need to build FSearch from its source. This method is officially supported, so you shouldn\u2019t run into any hangups.<\/p>\n<p>Start by installing the build requirements.<\/p>\n<p>sudo dnf install automake autoconf intltool libtool autoconf-archive pkgconfig glib2-devel gtk3-devel git<\/p>\n<p>Next, clone the source and change into the resulting directory.<\/p>\n<p>git clone https:\/\/github.com\/cboxdoerfer\/fsearch.git<br \/>\ncd fsearch<\/p>\n<p>Build FSearch and install it.<\/p>\n<p>.\/autogen.sh<br \/>\n.\/configure<br \/>\nmake<br \/>\nsudo make install<\/p>\n<p>Now, you should have a working FSearch install that you can launch graphically.<\/p>\n<h2>Add Your Database<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/fsearch-firstrun.jpg\" alt=\"Open FSearch\" \/><\/p>\n<p>Open up FSearch. When the window first pops open, you\u2019ll see a search field at the top, a big blank area with instructions to add a database, and not much else. FSearch is a search utility. It was built to do that one thing and do it well. In order to move as quickly as it does, FSearch relies on a database that it creates from the directories that you want to be able to search. The last step in getting set up is adding that directory.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/fsearch-edit.jpg\" alt=\"FSearch Edit Menu\" \/><\/p>\n<p>Click on \u201cEdit\u201d on the menu along the top of your FSearch window. Pick \u201cPreferences\u201d in the resulting dropdown menu.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/fsearch-preferences.jpg\" alt=\"Add Directories to FSearch\" \/><\/p>\n<p>A new window will open with a series of tabs across the top. Click on the \u201cDatabase\u201d tab. The main body of the tab is occupied by a big white space.<\/p>\n<p>To the left of that space are two tabs for \u201cInclude\u201d and \u201cExclude.\u201d They\u2019re exactly what they sound like. The \u201cInclude\u201d tab lists folders to include in your searches. The \u201cExclude\u201d tab lists subfolders you want to exclude from the included folders.<\/p>\n<p>On the right you\u2019ll find two buttons to add or remove directories. Click the one to add a directory. It will open a file browser window. Choose a directory that you want searchable and confirm. You can absolutely just add your whole \/home directory, which works pretty well.<\/p>\n<p>When you\u2019re done, FSearch will scan through the directory and build its database. This is surprisingly fast and actually won\u2019t slow down your computer too much.<\/p>\n<h2>Searching with FSearch<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/fsearch-ready.jpg\" alt=\"FSearch ready to search\" \/><\/p>\n<p>You\u2019ll notice that the big blank space on the main screen now has a magnifying glass icon faded into the background to signify that you\u2019re ready to start searching. Start typing the name of a file or folder that you know you\u2019ll find in your search directory. You\u2019ll immediately see FSearch start populating the big empty space with possible results in order of accuracy.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/imgcdn.maketecheasier.com\/2018\/10\/fsearch-results.jpg\" alt=\"FSearch Results\" \/><\/p>\n<p>Try a few more searches. You should also notice that FSearch gives you complete paths to your files in order to make it easy for you to access them after you\u2019re done searching.<\/p>\n<p>If you\u2019re finding too many erroneous results coming from a cache folder or something similar, you can always return to the database tab under the Preferences menu and add the problem directory to the exclusion list.<\/p>\n<p>There\u2019s not much else to it. FSearch follows the Unix philosophy of \u201cDo one thing and do it well,\u201d and it really does do that one thing very well. FSearch is insanely fast, and it will find you your files without you needing to wait too long, or at all.<\/p>\n<p>Is this article useful?<\/p>\n<p><a href=\"http:\/\/lxer.com\/module\/newswire\/ext_link.php?rid=262654\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Search functions in Linux file managers aren\u2019t all that great. Most are passable with minimal functionality and fairly slow search times, but there really aren\u2019t any exceptional ones. Even KDE\u2019s Baloo, that spends a ton of time indexing files, really doesn\u2019t perform the way you\u2019d hope a modern search would. Thankfully, a better option has &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/11\/09\/how-to-use-fsearch-to-quickly-search-files-in-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Use FSearch to Quickly Search Files in Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2969","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=2969"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2969\/revisions"}],"predecessor-version":[{"id":3183,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/2969\/revisions\/3183"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=2969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=2969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=2969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}