![]() | KruSearcher: find what you're looking for |
Prev | Krusader Tools | Next |
Welcome to Krusader's powerful search module - nicknamed Krusearcher. It is the most able tool (that we know of) for Linux®, since it allows so many different ways to quickly find the file you're looking for. The search function is also available on remote file systems. It is divided into two levels, the general and the advanced. Let's take a look at the general page ...
Krusearcher General.
The page is divided into four parts: top (search for) part, bottom part - titled 'containing text', left part - titled 'search in' and right part which is called 'don't search in'. Obviously, each part handles different aspects of the search. Let's look at them closely.
Top Part:
"Search for": here you enter the main search criteria. You can enter a filename, a wildcard (*.o.*, *.c etc.) or both - separated by a space. If you type 'text' the results is the same as '*text*'. You can exclude files from the search with '|' (e.g. '*.cpp *.h | *.moc.cpp' ).
"Case sensitive": unchecking it will allow lower and upper case search (i.e.: *.c interprets as *.c AND *.C).
"Of type": this box lets you search for a file not only by its name, but also by its mimetype. For example, you can search for all the audio files whose name begins with B. Usually this option defaults to 'all files', but you can choose to search for archives, directories, images, text files, videos and audio files.
Left and Right Part:
"Search in" and "Don't search in": Using those two parts, you can specify a search exactly the way you want it. For example, you might want to search for a file in the whole filesystem (beginning with /), but don't want to search inside /mnt. All you need to do is write / in the 'search in' box, and write /mnt in the 'dont search in' box. If you want to enter more than one directory in one of the boxes, just write the first name and press Enter. The directories name will be copied to the bigger box and you'll be able to enter another name.
The input line has an auto completion feature, corrosponding to KDE's global settings. If you wish, you can click on the folder icon, and browse to the directory you wish to add.
Bottom Part:
"Text": entering text here makes Krusader search for it inside the files (grep). That way, you can search for all header files (*.h) which include the word 'testing 123' inside them.
"Match whole word only"
"Case sensitive": refers to your text being searched for in upper and lower case or the exact phrase you entered.
"Search in subdirectories": do a recursive search and dive into every directory on the way.
"Search in archives": Krusader will search for your files inside every supported archive. This, however, takes longer to perform.
If you check this checkbox, you'll notice you cannot grep inside files anymore. This is done, since looking inside files which are archived, forces Krusader to extract them, which will results in an extremely long search.
"Follow links": if checked, Krusader will follow soft-links during the search.
"Profiles": if you have to do regular the same search operations you can save the search settings e.g. include files, exclude files, ... Press the 'profile' button, and you'll be able to add/ load / save / remove search profiles.
The above screenshot shows a search for all the files which end with c, cpp or h and include the string 'testing 123'. Krusader will search in /root, /opt, /bin and /usr, but not in /usr/lib and /usr/share.
Clicking the "Search" button starts the search and displays the results page. During the search, you may press the "Stop" button to stop the search. The "Close" button is not operational during a search, so you must first stop the search and then "Close" the window. When a result is found, double clicking on it will make Krusader's active panel point to the found files - but will not close the search window, so you'll be able to click on a different result.
Sometimes, you need to narrow your search even more. Krusearcher allows a much finer search, and for that, let's look at the "Advanced Page"...
Krusearcher Advanced.
This screenshot shows a search for files which size is between 10KB and 150KB, which were modified between October 10th and November 1st. Which belong to any user in the 'ftp' group, and are readable and writeable by anyone in the 'ftp' group but only readable to the rest of the world.
The advanced page is divided into three parts: size, date and ownership.
Size
Allows you to choose the size range of the file you're looking for. By checking the checkboxes, you can search for a file which is bigger than XXX bytes (or KB, MB), smaller than XXX bytes or, by checking both search for a file which size is bigger than XXX but smaller than YYY.
Date
This part offers three different ways of defining a date criteria:
"Modified between": allows you to enter two dates. Krusader will search for files with a modification date between the first date and the second one. If you only enter a date in the left box, you'll be searching for files older than that date. If you only enter a date in the right box, you'll be searching for files newer than that date.
You can click on the date icon (near the input boxes) to open a standard date window - which allows you to easily browse through the calender and search for the desired date. Clicking on a date will close the window and the date will appear in the input box.
"Not modified after": choosing this option makes Krusader search for files that were NOT modified after a given date, which is the same as searching for files older than that date.
"Modified in the last/not modified in the last": in these input boxes, you enter not a date, but a number. This number represents days/weeks/months (as chosen in the near dropbox). Entering the number 5 in the upper input box, makes Krusader search for files that were modified in the 5 days. Entering the number 2 in the lower input box makes Krusader search for files that did NOT change in the last 2 days. The combination of both results in a search for files that were changed in the last 5 days, but NOT in the last 2 days.
Ownership
"Belongs to user/group": by checking each of the corresponding checkboxes, you can search for files which belong to a certain user and/or group. The dropbox lists all the user names and group names in the system, just choose one and go ahead.
"Permissions": divided into owner, group and all - it allows you to choose certain permissions for the file. You can choose to specify permissions for the owner, group, all or any combination. The question mark (?) is a wildcard - which means that any permission is valid.
To clarify, the screenshot above (the permissions part) describes a search for files that belong to any user in group 'ftp', are readable, writable but not executable to any user in the group, are readable but not writable or executable to the rest of the world and have unknown permissions to its owner.
Clicking on the "Search" button to start the search and opens the Results window. Here you can see the progress and the the results of the search action. If you want you can stop the current search action with the "Stop" button. In the result list select the file and use F3/F4 to view/edit or use the right-click menu. When you click on a found item, the directory of the active panel will change if the selected item is not in the current panel directory. When you close the Krusearcher window, the selected item is selected in the active panel.
Prev | Home | Next |
BookMan: Organize your bookmarks | Up | KrViewer: Krusader's internal viewer-editor |