The search window in the Linux file manager (Caja in Linux Mint, Nautilus in Ubuntu) has always been a mystery to me. Intuitively I think I should use wildcards but, I look for something like *.txt and search returns nothing. My earlier workaround was to use the find command (Find-ing Files); however, I recently discovered two ways in which the file manager’s search feature can be used directly.
The first trick to learn is that, although wildcards are available in terminal commands, file manager doesn’t use them. Search for .txt (rather than *.txt) and all the text files are displayed. Furthermore, by default, this includes text files in any sub-folders so it can be a very powerful tool to locate a specific file anywhere on a disk.
The second trick, which I don’t find quite as useful, is to use the Ctrl-S hotkey inside the file manager. This pops up a dialogue box that asks for a file name “pattern” that will be used to highlight all matching items. Thus, entering a wildcard string, such as *.txt, highlights all the text files in the current folder. My difficulty with this technique is that the folder listing still displays all of the files in the folder rather than “extracting” just the relevant results.
While these techniques will allow files to be located in many circumstances, there will be occasions when a wildcard pattern is required for a search across multiple folders or even over an entire disk. In such cases, the find command will be more useful and, for my purposes, I can use my home-grown batch file to quickly “find” what I’m looking for.
how to search for files and file contents with GUI?
10 Nautilus tips and tricks
How to Use Wildcards