LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-11-2007, 10:19 AM   #1
PhilK
LQ Newbie
 
Registered: Mar 2006
Distribution: openSUSE 10.2
Posts: 17

Rep: Reputation: 0
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
 
Old 04-12-2007, 05:45 AM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
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
 
Old 04-12-2007, 06:06 AM   #3
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
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
 
Old 04-12-2007, 02:19 PM   #4
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
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.
 
Old 04-14-2007, 01:11 PM   #5
PhilK
LQ Newbie
 
Registered: Mar 2006
Distribution: openSUSE 10.2
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Click on Places>Search for Files> (I get a Nautilus has quit error) Balarabay1 SUSE / openSUSE 0 07-14-2006 09:44 AM
search default: search post title only slackie1000 LQ Suggestions & Feedback 4 03-10-2005 08:50 AM
Gnome Nautilus compile failed in [nautilus-printer.lo] chunlee Linux - Software 5 01-24-2005 05:57 PM
Quick VIM question (unhighlighting search terms after search) lrt2003 Linux - Newbie 5 05-08-2004 06:21 PM
How to 'apt-cache search' & 'apt-file search' by distribution? davidas Debian 3 04-19-2004 02:56 PM


All times are GMT -5. The time now is 10:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration