Search files from the terminal on Linux using locate

sudo apt-get install locate

Using locate Command

locate LAMP-Setup.odt
locate "*.html"

Ignore Case Sensitive Locate Outputs

locate -i *text.txt*

Refresh mlocate Database

Since locate command relies on a database called mlocate. The said database needs to be updated regularly for the command utility to work efficiently

sudo updatedb

Display Only Files Present in Your System

locate -i -e *text.txt*

Review Your Locate Database

locate -S

Limit Search Queries to a Specific Number

locate "*.html" -n 20

Display The Number of Matching Entries

locate -c [tecmint]*