<HTML
><HEAD
><TITLE
>Quick  find mode</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><LINK
REL="HOME"
TITLE="GNOME Search Tool"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Search Criteria"
HREF="criteria.html"><LINK
REL="NEXT"
TITLE="Authors"
HREF="authors.html"></HEAD
><BODY
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>GNOME Search Tool</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="criteria.html"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="authors.html"
>Next &#62;&#62;&#62;</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="LOCATE"
>Quick  find mode</A
></H1
><P
> 
      This section describes quick find mode of <TT
CLASS="APPLICATION"
>GNOME
    search tool</TT
>. To use this mode, switch to
    <TT
CLASS="GUILABEL"
><B
>Quick find (locate)</B
></TT
> window, shown in <A
HREF="locate.html#LOCATEWIN"
>Figure 4</A
>. 
      </P
><DIV
CLASS="FIGURE"
><A
NAME="LOCATEWIN"
></A
><P
><IMG
SRC="locate.png"></P
><P
><B
>Figure 4. Quick find window</B
></P
></DIV
><P
> In the quick search mode, <TT
CLASS="APPLICATION"
>GNOME Search
      tool</TT
> doesn not actually search for a file on the
      disk &#8212; instead, it uses a special database containing the
      names of all the files on the system. It makes search much
      faster. However, it also means that the only type of search you
      can do is by filename. Moreover, this search will not find files
      which were added after the last database update (on most
      systems, it is updated daily, usually at night &#8212; see below
      for more info).
    </P
><P
> To find a file using the quick search mode, just enter a
      substring of the file name in the <TT
CLASS="GUILABEL"
><B
>Locate
      file</B
></TT
> field. For example, to find all the files whose
      filenames contain the string "searchtool", enter
      <TT
CLASS="USERINPUT"
><B
>searchtool</B
></TT
> in this field. This will also
      show all the files that contain the string "searchtool" in their
      full pathname &#8212; in particular, all the files in <TT
CLASS="FILENAME"
>/usr/share/help/gsearchtool</TT
>.
    </P
><P
> To restrict search to a subdirectory, you can use the
      directory name in combination with the wildcards. For example,
      to do quick search for all files with extension
      <TT
CLASS="FILENAME"
>txt</TT
> in the directory <TT
CLASS="FILENAME"
>/home/user</TT
>, enter <TT
CLASS="USERINPUT"
><B
>      /home/user/*.txt</B
></TT
> in the <TT
CLASS="GUILABEL"
><B
>Locate
      file</B
></TT
> field.
    </P
><P
>The quick search mode is actually a front-end to <B
CLASS="COMMAND"
>locate
      </B
> command, so if you need more detailed information,
      read the appropriate manual page. 
    </P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="LOCATEDB"
>The locate database</A
></H2
><P
>	This section discusses updating the database used for quick
	search. Unless you are a system administrator or just curious,
	you do not need to read it. 
      </P
><P
>	On most systems, the database used for
	<B
CLASS="COMMAND"
>locate</B
> command (and thus, for quick search
	mode of <TT
CLASS="APPLICATION"
>GNOME Search tool</TT
>), is
	updated daily, usually at nights. This is done as a
	<B
CLASS="COMMAND"
>cron</B
> job &#8212; see the manual page for
	<B
CLASS="COMMAND"
>cron</B
> if you are unfamiliar with this
	utility. Note that if your computer is usually turned off at
	night time, the database doesn't get updated. In this case,
	you should change the default update time by either manully
	editing <TT
CLASS="FILENAME"
>/etc/crontab</TT
> or using a graphical
	tool such as <TT
CLASS="APPLICATION"
>cromagnon</TT
>. This
	requires system administrator (root) privileges.
      </P
><P
>You can also issue the command "Update database now" by
      running the command <B
CLASS="COMMAND"
>updatedb</B
>. Again, this
      requires system administrator (root) privileges. Without any
      options, it rebuilds the whole database, for all the files on
      your system. It also has many command line options allowing you
      to fine-tune it (for example, istructing it to skip certain
      directories). For more information, read the manual page for
      <B
CLASS="COMMAND"
>updatedb</B
>.
      </P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="criteria.html"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="authors.html"
>Next &#62;&#62;&#62;</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Search Criteria</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Authors</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>