A slighly better way to update your file name database than just issue a updatedb :
-
#!/bin/bash
-
# Better than updatedb
-
#
-
echo -n "Updating locatedb..."
-
updatedb --prunepaths="/tmp /proc /var/tmp"
-
date> /var/log/updatedb.log
-
chmod +r /var/log/updatedb.log
-
echo " done."
Related posts
Metastuff
No Comment yet
No comments yet. You could get "First Post!" which would bring you fame, luxury cars and chicks.
This entry "Better update" was posted on 25/01/2004 at 10:14 pm and is tagged with Bash, Code, Linux
Watch this discussion : Comments RSS 2.0. You can trackback this post from your own site