locate command not working for me
Hi,
Am I missing something here? Code:
nnjond@nnjond-den:/$ cd /media/disk/Dual_Data/ |
locate is case sensitive, like just about all posix tools.
|
nnjond@nnjond-den:/media/disk/Dual_Data$ cd /.
nnjond@nnjond-den:/$ locate -b peleas nnjond@nnjond-den:/$ locate -b peleas.* nnjond@nnjond-den:/$ locate -i peleas nnjond@nnjond-den:/$ locate -i Peleas nnjond@nnjond-den:/$ locate -b Peleas nnjond@nnjond-den:/$ locate -b Peleas.* nnjond@nnjond-den:/$ ??? |
It should be noted that the find command operates in real time, where as the locate command operates from an index. From this locate can tell you about what the drive looked like from a historical perspective. Otherwise you will need to re-index the drive with the command updatedb.
|
"man locate" will have a "see also" for updatedb, which will have similar for updatedb.conf
Wonderful things manpages. |
So silly question but you have run updatedb post the files you are trying to locate were created in that directory?
|
Thanks all. The prob seems to be
/media appears in the /etc /updatedb.conf in PRUNEPATHS |
All times are GMT -5. The time now is 12:51 AM. |