View previous topic :: View next topic |
Author |
Message |
evster Guru
Joined: 12 Jul 2005 Posts: 367 Location: Waterloo, Ontario, Canada
|
Posted: Sat Aug 27, 2005 1:58 pm Post subject: slocate docs [solved] |
|
|
Hi,
Where can I find documentation on how to setup slocate? The webpage doesn't really tell me much and the man page just lists all the options. I am curious about how to index my file system, and how to keep it indexed when new files arrive.
Thanks!
Evan
Last edited by evster on Sat Aug 27, 2005 5:46 pm; edited 1 time in total |
|
Back to top |
|
|
frenkel Veteran
Joined: 13 May 2003 Posts: 1034 Location: .nl
|
Posted: Sat Aug 27, 2005 5:02 pm Post subject: |
|
|
Code: |
Options:
-u - Create slocate database starting at path /.
|
What else do you want to setup? Just run this command after doing some stuff with your filesystem |
|
Back to top |
|
|
evster Guru
Joined: 12 Jul 2005 Posts: 367 Location: Waterloo, Ontario, Canada
|
Posted: Sat Aug 27, 2005 5:45 pm Post subject: |
|
|
Ok, so it is as easy as that
Thanks! |
|
Back to top |
|
|
pasousa n00b
Joined: 15 Oct 2004 Posts: 58 Location: /Portugal/Coimbra
|
Posted: Sat Aug 27, 2005 6:53 pm Post subject: |
|
|
You can use another tool to update the slocate database. It's the updatedb tool.
This tool is used just to update the database and you have options only related to that. |
|
Back to top |
|
|
frenkel Veteran
Joined: 13 May 2003 Posts: 1034 Location: .nl
|
Posted: Sat Aug 27, 2005 8:40 pm Post subject: |
|
|
pasousa wrote: | You can use another tool to update the slocate database. It's the updatedb tool.
This tool is used just to update the database and you have options only related to that. |
Mm, updatedb isn't in the slocate package... |
|
Back to top |
|
|
gentsquash l33t
Joined: 03 Nov 2004 Posts: 753 Location: Still a Gentoo beginner.
|
Posted: Sun Aug 28, 2005 4:34 am Post subject: |
|
|
Cmd updatedb is simply a symlink
Code: | updatedb -> slocate |
in /usr/bin/. The slocate cmd uses how it was invoked in order
to decide what to do. _________________ Your thread resolved? Putting [SOLVED] in its title helps all Gentooers. (Button "edit" , first post)
Prof. Jonathan LF King, Mathematics dept., University of Florida |
|
Back to top |
|
|
frenkel Veteran
Joined: 13 May 2003 Posts: 1034 Location: .nl
|
Posted: Sun Aug 28, 2005 9:38 am Post subject: |
|
|
gentsquash wrote: | Cmd updatedb is simply a symlink
Code: | updatedb -> slocate |
in /usr/bin/. The slocate cmd uses how it was invoked in order
to decide what to do. |
Cool, didn't know that |
|
Back to top |
|
|
zpet731 Tux's lil' helper
Joined: 24 Mar 2004 Posts: 133 Location: Sydney Australia / Belgrade Serbia
|
Posted: Thu Oct 06, 2005 2:36 pm Post subject: |
|
|
I have another issue regarding locate and slocate. When I am searching for a file with an extension lets say *.txt and at least one such file exists in my current directory then only that file is found and the search ends. The only time the search returns the correct results (ie. all files with the *.txt extension) is when the current directory doesn't contain a file with the searching expression. Is this the correct behavior of locate?
Thanks for the help. _________________ " Invention is the most important product of man's creative brain. The ultimate purpose is the complete mastery of mind over the material world, the harnessing of human nature to human needs."
Nikola Tesla |
|
Back to top |
|
|
|