250 Part II . Getting Around in Linux (Web server version)
250 Part II . Getting Around in Linux The database is updated using the updatedb command. An example of the use of the updatedbcommand is shown below. Only the root user is authorized to use this command on the system. # updatedb The locate utility uses the options shown below in Table 6-12. Table 6-12 Options Used with locate Option Use -U /PATH Start at the specified path when creating the slocate database. -e DIR Exclude the specified directories when creating the slocate database. -c Parses the /etc/updatedb.conf file when creating the database. -i Searches without regard to case. -o FILE Specifies the output file to create. -d PATH Specifies the path of databases to search. -u Start at / when creating the slocate database. which The which command takes one or more arguments. For each of its arguments it prints to stdout the full path of the executables that would have been executed when this argument is entered at the shell prompt. It does this by searching for an executable or script in the directories listed in the environment variable PATHusing the same algorithm as bash. This allows you to see the full path to a command before it is run. This can be useful for verifying that you are running the command that you meant to run. The utility uses the following syntax: which options programname An example of the proper use of this command is shown in the example below to discover the location of the locatecommand. # which locate /usr/bin/locate
In case you need affordable webhost to host your website, our recommendation is ecommerce web host services.