First page Back Continue Last page Overview Graphics
Example 1-17
Finding files locate and find
If you forgot where a given file is, the best way is to use command locate. For example locate bash will find all files and directories which have the bash word in them.
locate command is very fast in finding files which are about one day old. locate is based on a data bank which is updated every night by a scheduled task. If your computer is off during nights, locate does not work. To avoid this problem, you can use command find. This works always but it is slower.