title: Does MongoDB have a shell history file?
body: <p>Does MongoDB have something like a <code>.bash_history</code> file?</p>
  
  <p>I recently typed in a long command, closed &amp; re-opened the shell, and want to retrieve it.</p>
  
  <p>Pressing up doesn't work as it seems that the history of the last shell is not accessible in the new shell.</p>
  
  <p>I installed 1.8.1 with Homebrew. Is there a configuration variable I should set that will turn on MongoDB interactive shell history logging?</p>
  
  <p>Here's my <code>mongod.conf</code> file:</p>
  
  <pre><code># Store data in /usr/local/var/mongodb instead of the default /data/db
  dbpath = /usr/local/var/mongodb
  
  # Only accept local connections
  bind_ip = 127.0.0.1
  # Enable Write Ahead Logging (not enabled by default in production deployments)
  journal = true
  </code></pre>