> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.serverfreak.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How Can I Search My Entire Server For a File?

You can use the locate command to find any file on the server. See the example below.


**[root@localhost:~]$ locate viminfo**
**/usr/share/vim/vim63/syntax/viminfo.vim**
**/home/ben/.viminfo**
**/home/joe/.viminfo.tmp**
**/home/joe/.viminfo**
**/home/jeff/.viminfo**
**/root/.viminfo**


If the locate command complains about no locatedb run the command below to update the locate database.


**updatedb**