title: What start up scripts are executed when a terminal(shell) is opened in Ubuntu
body: <p>When I open a terminal, it says cannot execute the binary file and the output is something like this:</p>
  
  <pre><code>bash: /home/sandeep/bin/uname: cannot execute binary file
  
  bash: [: =: unary operator expected
  
  bash: /home/sandeep/bin/sed: cannot execute binary file
  
  bash: /home/sandeep/bin/ls: cannot execute binary file
  </code></pre>
  
  <p>This is followed by normal prompt where everything is fine. But as a programmer it is annoying to see those many errors every time you open a terminal.</p>
  
  <p>The Reason i found out is that when i installed a armeabi tool chain it created a folder called bin in the home directory and all the executables inside this directory are for arm processor. But my terminal when it is being opened it is trying to execute these arm binaries and hence it shows an error that these binaries cannot be executed(since my proc is not arm)</p>
  
  <p>To solve this i can remove this folder(i tried it and it worked) but thats not the optimal solution. i want to know the script that is getting executed when i open a terminal where it is trying to execute wrong binaries at the launch. </p>
  
  <p>I had a look at .bashrc but there is nothing relevant to my problem in that.</p>