Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Commande locate
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
cscsnicko
n00b
n00b


Joined: 14 Mar 2003
Posts: 66

PostPosted: Wed Mar 26, 2003 10:03 pm    Post subject: Commande locate Reply with quote

Salut
Voila.... J essaie d utiliser locate seulement il me dit que
/var/spool/locate/locatedb n existe pas Je cree dc le fichier mais evidemment il est vide Comment faire pour constituer l arborescence ???
Merci;;;
Back to top
View user's profile Send private message
takezo
Tux's lil' helper
Tux's lil' helper


Joined: 14 Jan 2003
Posts: 132

PostPosted: Wed Mar 26, 2003 10:30 pm    Post subject: Reply with quote

Code:
#updatedb


si tu as beaucoup de packages installés, ca risque de prendre un peu de temps :)
(n'oublies pas de le refaire régulièrement)
Back to top
View user's profile Send private message
arlequin
l33t
l33t


Joined: 16 Nov 2002
Posts: 707
Location: grep $USER /etc/passwd | cut -d':' -f6

PostPosted: Wed Mar 26, 2003 11:05 pm    Post subject: Reply with quote

Petite astuce: schedule le 'updatedb' avec cron, histoire d'avoir une base relativement fraîche. Perso, il me le fait toutes les nuits... et ça aide :wink:
_________________
J'vous dis ciao !
Au fait, ciao ça veut dire bye en anglais.
Back to top
View user's profile Send private message
nikai
Apprentice
Apprentice


Joined: 02 Oct 2002
Posts: 270
Location: Kitzbühel, Austria

PostPosted: Wed Mar 26, 2003 11:10 pm    Post subject: Reply with quote

Et tu peux exclure des fichier comme ca:
Code:
$ cat /etc/updatedb.conf
PRUNEPATHS="/proc,/root/,/tmp/,/mnt/other,/var/tmp,/usr/tmp,/dev"
PRUNEFS="nfs,smbfs,ncpfs,proc,devpts,supermount"

:wink:

PS: Mais /etc/updatedb.conf ne fonctionne qu'avec updatedb de sys-apps/slocate.
Il y a un autre updatedb dans sys-apps/findutils, et ca fonctionne different. :roll:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum