Pagina 1 di 1

Il comando locate non funziona...

Inviato: martedì 14 aprile 2009, 13:39
da alexcr7
Ogni volta che scrivo

Codice: Seleziona tutto

locate qualcosa
(e con 'qualcosa' ho provato di tutto, conky, etc, usr, tutto il possibile ed immaginabile  ??? )
non mi viene restituito nulla...

Codice: Seleziona tutto

moonlight:/# locate conky
moonlight:/# 
Perchè?

Re: Il comando locate non funziona...

Inviato: martedì 14 aprile 2009, 13:44
da mohr tutchy
Posta l'outoput di

Codice: Seleziona tutto

cat /etc/updatedb.conf
One love

Re: Il comando locate non funziona...

Inviato: martedì 14 aprile 2009, 13:59
da alexcr7

Codice: Seleziona tutto

PRUNE_BIND_MOUNTS="yes"
PRUNEPATHS="/tmp /var/spool /media"
PRUNEFS="NFS nfs nfs4 afs binfmt_misc proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs shfs sysfs cifs lustre_lite tmpfs usbfs udf"

Re: Il comando locate non funziona...

Inviato: martedì 14 aprile 2009, 14:13
da mohr tutchy
Sembra a posto.

Aggiorna il database con

Codice: Seleziona tutto

sudo updatedb
abbi pazienza, ci metterà un po'.

Quando l'aggiornamento è completato riprova

Codice: Seleziona tutto

locate home
One love

Re: Il comando locate non funziona...

Inviato: martedì 14 aprile 2009, 14:35
da alexcr7
Grazie mille ora è a posto! ;D Ma...giusto per capirci qualcosina...ho aggiornato il database di cosa?

Re: Il comando locate non funziona...

Inviato: martedì 14 aprile 2009, 14:37
da Elrond
man updatedb ha scritto:updatedb  creates  or  updates  a  database  used by locate(1).  If the database already exists, its data is reused to avoid rereading directories that have not changed.

Re: Il comando locate non funziona...

Inviato: martedì 14 aprile 2009, 14:40
da alexcr7
Elrond ha scritto:
man updatedb ha scritto:updatedb  creates  or  updates  a  database  used by locate(1).  If the database already exists, its data is reused to avoid rereading directories that have not changed.
Grazie ad entrambi (b2b)