In: , ,
On: 2004 / 01 / 25 Viewed: 35616 times
Shorter URL for this post: http://ozh.in/j

A slighly better way to update your file name database than just issue a updatedb :

CODE:
  1. #!/bin/bash
  2. # Better than updatedb
  3. #
  4. echo -n "Updating locatedb..."
  5. updatedb --prunepaths="/tmp /proc /var/tmp"
  6. date> /var/log/updatedb.log
  7. chmod +r /var/log/updatedb.log
  8. echo " done."

Related posts

Shorter URL

Want to share or tweet this post? Please use this short URL: http://ozh.in/j

Metastuff

This entry "Better update" was posted on 25/01/2004 at 10:14 pm and is tagged with , ,
Watch this discussion : Comments RSS 2.0.

No Comment yet

No comments yet. You could get "First Post!" which would bring you fame, luxury cars and chicks.

Leave a Reply

Comment Guidelines or Die

  • HTML: You can use these tags: <a href=""> <em> <i> <b> <strong> <blockquote>
  • Posting code: Post raw code (no <> &lt; etc) within appropriate tags : [php][/php], [css][/css], [html][/html], [js][/js], [sql][/sql], [xml][/xml], or generic [code][code]
  • Gravatars: Curious about the little images next to each commenter's name ? Go to Gravatar.
  • Spam: Various spam plugins on patrol. I'll put pins in a Voodoo doll if you spam me.
  • I will mark as Spam test comments, all comments with SEO names (ie "My Cool Online Shop" instead of "Joe") or containing forum-like signatures.

Read more ?

Close
E-mail It