Results 1 to 3 of 3
So im not sure on the process of using 'locate' i did a 'updatedb' and after it finished i tried doing a 'locate <filename>' and it still would not find ...
- 06-03-2008 #1Just Joined!
- Join Date
- Jun 2008
- Location
- Atlanta
- Posts
- 2
using Locate to find files.
So im not sure on the process of using 'locate' i did a 'updatedb' and after it finished i tried doing a 'locate <filename>' and it still would not find the file i am looking for, is there other ways to use this command?
- 06-03-2008 #2
Here is an example of how I like to use locate:
If there is a binary which is not linked to /usr/bin (or similar) I may not remember where it is or exactly what the binary is called. Lets take my sega emulator which I can remember is named generator:
Code:slocate generator* | grep bin /usr/games/bin/generator-sdl /usr/kde/3.5/bin/lx200generic /usr/bin/fluxbox-generate_menu /sbin/generate-modprobe.conf
/usr/games/bin/generator-sdl is the right one, yayLinux since: 2001
Gentoo since: 2004
- - - - - - - -
Translation:
I fix things until they break.
- 06-04-2008 #3
In case , you searching for file , try find command,
This will search entire file system for the file named "filename.txt"Code:find / -name filename.txt
HTH- Lakshmipathi.G
-------------------
FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
-------------------


Reply With Quote