开发者

What start up scripts are executed when a terminal(shell) is opened in Ubuntu [closed]

开发者 https://www.devze.com 2023-04-03 04:46 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

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 chai开发者_C百科n 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.


I'd debug it with strace

strace -e trace=open,read bash > output.txt

then you can check what files are getting opened when calling bash


Remove /home/sandeep/bin from $PATH environment variable.

0

精彩评论

暂无评论...
验证码 换一张
取 消