Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 45457  / 1 Year ago, sat, march 4, 2023, 2:10:50

When I use the search function in Nautilus it only returns files with matching file names. It doesn't even support wildcards. For example, "*.txt" doesn't return anything. I would expect it to return all .txt files.



Anyway, is there a way, without using the command line, to search the contents of files, including all plain text files (.txt, .html, .css, .js, .c, .csv, .sh, .py, ...), archives (.zip, .7z, .rar, .tar, ...), office/libreoffice files (.doc, .docx, pptx, .odf, .ods, ...), and media (.mp3, .mp4, ...) meta data? The search should also have the option of setting file size, date, type, and being case insensitive.


More From » search

 Answers
1

When you use Nautilus, just click search from the top level of your home folder (i.e. where you can see all your folders laid out) and in the search box only enter .pdf (or whatever extension like .txt that you want to find). That's what I do and it just returned me all the pdfs in my home folder. You don't need to use a wildcard or put quotes around the search term in Nautilus search, unlike when you use search programs on the command line.



The gnome-search-tool can be used to search within files- select the home folder or the directory to be searched and then click select more options, and input your search term where it says 'contains the text.' It can be quite slow as it works without an index, but I have used it several times and it has been useful for basic searches.


[#36626] Sunday, March 5, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
whipstder

Total Points: 189
Total Questions: 110
Total Answers: 99

Location: Uzbekistan
Member since Sat, Feb 27, 2021
3 Years ago
;