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."
Shorter URL
Want to share or tweet this post? Please use this short URL: http://ozh.in/j
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.