Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wonder how to use the command locate to search for words that are not case sensitive? Such as modify locate normal to search for results that have "Normal" and "normal".

share|improve this question
up vote 11 down vote accepted

That depends on the locate you use. There are a couple of implementations, with identical executable names, but various package names: locate, slocate, mlocate, rlocate.

Usually they all have -i and/or --ignore-case switch. Consult your locate's man page for the exact syntax.

Also usually they have no configuration file, so if you want to set the case-insensitiveness persistently, set an alias in your .bashrc (or similar) file: alias locate='locate -i'.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.