title: bash locate command with pattern
body: <p>I try to find a file with <code>locate</code> command.</p>
  
  <p>It behaves itself some strange with patterns, at least not like <code>ls</code> or <code>find</code> commands.</p>
  
  <p>I do the following:</p>
  
  <pre><code>sh@sh:~$ locate rhythmdb
  /home/sh/.local/share/rhythmbox/rhythmdb.xml
  sh@sh:~$ locate "rhyth*"
  sh@sh:~$ locate 'rhyth*'
  sh@sh:~$ locate rhyth*
  </code></pre>
  
  <p>(<a href="http://i.stack.imgur.com/AaQSU.png" rel="noreferrer">Screenshot</a>)</p>
  
  <p>In my humble opinion it should find when asterisk is used too, but it doesn't.</p>
  
  <p>What can be wrong?</p>