When I open a terminal, it says cannot execute the binary file and the output is something like this,
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
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.
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).
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.
I had a look at
~/.bashrc but there is nothing relevant to my problem in that.