planetOzh
planetOzh ‐ a virtual .postcard from $me to myself();
Code 2004/01/25 1 min read

Better update

By Ozh Short URL: http://ozh.in/j

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

< View plain text >
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."
BashCodeLinux
← PreviousBash Script: Random Line
Next →Automated FTP script
Ozh : WordPress published author, maker of YOURLS, wine enthusiast and a metal head. Read more about me.

This post

Written on 2004 / January / 25 (22 years , 5 months and 3 days ago) Last updated: 2007/08/05 (18 years , 11 months and 2 days ago)

Recent Posts

Allowing weird characters in YOURLS short URLs
YOURLS 2026/06/23
My favorite Git alias
Git 2026/06/16
Open PHP files in the right editor, automatically.
Linux 2026/05/30
YOURLS now speaks PostgreSQL
YOURLS 2026/05/17
The most beautiful song known to man
Music 2026/05/13

Topics

Shorties Web WordPress My Life Code Plugins Ahah Images PHP Cult Google planetOzh Stats Blogostuff Software sux0rz Spam CSS RSS Tips Linux Wordpress Theme Music WTF Useless Ego Javascript Review GMail Twitter

Subscribe

RSS feed
planetOzh p l a n e t
🄯 Ozh 2000 - 2026
About Archives RSS @ozh@Github@ozh@Mastodonozh.org