#!/bin/bash # mklocatedb--Builds the locate database using find. User must # be Root to run this script. setglobal locatedb = '"/tmp/locate.db'" if test $[whoami] != "root" { echo "Must be root to run this command." > !2 exit 1 } find / -print > $locatedb exit 0