title: .bash_profile corrupted not found, command not found... Help restore it back to the original
body: <p>I was playing with the installation of Mongo db on my mac... and in exporting the Mongodb/bin dir to PATH .. looks like I corrupted the bash_profile and now I can't find it..</p>
  
  <p>This is what I did :</p>
  
  <pre><code>nano ~/.bash_profile
  </code></pre>
  
  <p>The file did not exist, so I went ahead created one and added the following line</p>
  
  <pre><code>export PATH={$PATH}:~/mongo/bin
  </code></pre>
  
  <p>So now I saved the file .. by pressing ctrl + O and then hit Enter at the prompt. Then I pressed ctrl + X to exit nano. I  reloaded my bash profile with the following command:</p>
  
  <pre><code>$ source ~/.bash_profile.
  </code></pre>
  
  <p>.....</p>
  
  <p>Now even the basic commands like open, clear , grep etc would result in</p>
  
  <p><strong>-bash: clear: command not found</strong></p>
  
  <p>When I do</p>
  
  <pre><code>export $PATH
  </code></pre>
  
  <p>this is what shows up ...</p>
  
  <p>*</p>
  
  <blockquote>
    <p>-bash: export: `{{/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin}:/Users/pavbond007/Documents/Mongo/mongodb-osx-x86_64-2.2.3/bin}:/Users/pavbond007/Documents/Mongo/mongodb-osx-x86_64-2.2.3/bin':
    not a valid identifier</p>
  </blockquote>
  
  <p>*</p>
  
  <p>I am a novice in this.. Please help me get back to my original state where I had access to all the mac and unix commands..</p>
  
  <p>Let me know if you require additional details.. My OS is mountain lion.. I had also XCode installed..</p>