LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How Do You Search With Nautilus ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-you-search-with-nautilus-545128/)

PhilK 04-11-2007 09:19 AM

How Do You Search With Nautilus ?
 
I've just installed openSUSE 10.2 (2.6.18.2-34). I'm trying to understand how Nautilus 2.16.1 searches for files. Let's say I start from location /, press search and enter fstab, expecting it find it in /etc so I can view it. The actual output is reproduced below.

What am I doing wrong? I've not set any filters. Is it GNOME (I've heard it's not very user friendly), or is it some magical incantation I don't know about because I'm a total newbie.
Thanks

Phil

/usr/share/doc/packages/autoyast2/autodocs/AutoinstStorage.html
/usr/share/doc/manual/opensuse-manual_en/manual/bk04ix01.html
/usr/share/doc/manual/opensuse-manual_en/manual/bk05ix01.htm
/usr/share/doc/manual/opensuse-manual_en/manual/book.opensuse.reference.html
/usr/share/doc/manual/opensuse-manual_en/manual/bx5dh00.html
/usr/share/doc/manual/opensuse-manual_en/manual/bx5dh07.html
/usr/share/doc/manual/opensuse-manual_en/manual/cha.advdisk.html
/usr/share/doc/manual/opensuse-manual_en/manual/cha.cryptofs.html
/usr/share/doc/manual/opensuse-manual_en/manual/cha.update.html
/usr/share/doc/packages/autoyast2/html/configuration.html
/usr/share/doc/packages/autoyast2/html/CreateProfile.Partitioning.html
/usr/share/doc/packages/yast2-storage/autodocs/custom_part_dialogs.html
/usr/share/doc/packages/yast2-storage/autodocs/custom_part_lib.html
/usr/share/doc/packages/yast2-backup/autodocs/functions.html
/usr/share/doc/packages/hal/spec/hal-spec.html
/usr/share/doc/packages/autoyast2/autodocs/index.html
/usr/share/doc/packages/autoyast2/html/index.html
/usr/share/doc/packages/yast2-installation/control-doc/index.html
/usr/share/doc/packages/yast2-nfs-client/index.html
/usr/share/doc/packages/yast2-nfs-client/autodocs/index.html
/usr/share/doc/packages/yast2-repair/autodocs/index.html
/usr/share/doc/packages/yast2-storage/autodocs/index.html
/usr/share/doc/packages/yast2-update/autodocs/index.html
/usr/share/doc/packages/jfsutils/jfsroot.html
/usr/share/doc/packages/yast2-nfs-client/autodocs/Nfs.html
/opt/kde3/share/doc/HTML/en_GB/khelpcenter/faq/notrelated.docbook
/usr/share/doc/packages/openct/html/OperatingSystems.html
/usr/share/doc/packages/yast2-repair/autodocs/OSRCommon.html
/usr/share/doc/packages/yast2-repair/autodocs/OSRFstab.html
/usr/share/doc/packages/yast2-repair/autodocs/osr_module_packages.html
/usr/share/doc/packages/yast2-repair/autodocs/osr_module_partition.html
/usr/share/doc/packages/yast2-repair/autodocs/OSRPopup.html
/usr/share/doc/packages/yast2-update/autodocs/RootPart.html
/usr/share/doc/packages/yast2-nfs-client/autodocs/routines.html
/usr/share/doc/manual/opensuse-manual_en/manual/sec.deployment.remoteinst.instserver.html
/usr/share/doc/manual/opensuse-manual_en/manual/sec.filesystems.major.html
/usr/share/doc/manual/opensuse-manual_en/manual/sec.filetransfer.moreinformation.html
/usr/share/doc/manual/opensuse-manual_en/manual/sec.help.manpages.html
/usr/share/doc/manual/opensuse-manual_en/manual/sec.shell.commands.html
/usr/share/doc/manual/opensuse-manual_en/manual/sec.trouble.data.html
/usr/share/doc/packages/mdadm/Software-RAID.HOWTO-2.html
/usr/share/doc/packages/mdadm/Software-RAID.HOWTO-5.html
/usr/share/doc/packages/mdadm/Software-RAID.HOWTO-7.html
/usr/share/doc/packages/yast2-nfs-client/autodocs/ui.html

IBall 04-12-2007 04:45 AM

It looks like it is searching to contents of the files rather than just the name.

In my experience, Nautilus search doesn't work to well. Maybe try the "Search for Files" option in the Gnome "Places" menu. On my system (Debian Sid), I don't get accurate results with Nautilus search but I do with Gnome search. This is odd though...

I suggest you look into Beagle, which I think is installed by default on Suse.

--Ian

Valkyrie_of_valhalla 04-12-2007 05:06 AM

Alternatively, you could open a console and type in:
find / -name fstab
And it should display any folder or file named "fstab".

As for Nautilus, it does seem it's searching the contents of the file rather than the actual file name.

If you want to view it directly, most text editors allow you to open it directly from a console, eg:
vi /etc/fstab
or
kate /etc/fstab
It's much easier and takes up less time this way.
Remember, the console is your friend :)

oskar 04-12-2007 01:19 PM

for system files "locate" is the fastest way of finding stuff from the command line.
How the nautilus search behaves depends on the distribution. Suse also comes with the very nice beagle-search if you want something graphical.

PhilK 04-14-2007 12:11 PM

Thanks for all your replies. Like I said, I'm new to Linux, but not in IT. I'm surprised to say the least that a file manager works like this as standard.

It probably is searching for contents, but I find it hard to believe this is how it is supposed to work - not to find directories or file names, just contents in almost exclusively html files - and just be called "search".

Now, I did find two functions in the menu path: one calls gnome-search-tool and is just a front end for find and locate, and one calls the Nautilus "search function" (for want of better description). Of course, in the menu both functions are called "Search for Files..." and have the same icon.

So what I have to do for convenient file searching is amend the XML in /etc/xdg/menus so that the "Search for Files..." I'm presented with permanently in the old menu path under "Places" is the one that actually searches for files. I think I'm getting to understand what Linux is all about now.

Thanks to everyone again,

Phil


All times are GMT -5. The time now is 07:08 PM.