Possible Duplicates:
When does mac/ubuntu use .bash_profile and/or .bashrc?
Difference between .bashrc and .bash_profile

I loaded up ubuntu on a vm on my windows computer, and my .bash_profile doesn't seem to load when I open up a terminal (I have to source .bash_profile to get it to work).

Do some systems load .bashrc by default, while others (like Mac osx) loads .bash_profile?

marked as duplicate by slhck, Daniel Beck, Gilles, studiohack May 18 '11 at 20:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


This answer to an earlier question of yours actually already also answers this: depending on how your bash is invoked, it reads different files. For a detailed guide, see this web page.

The first few comments on this answer might also help you.

Not the answer you're looking for? Browse other questions tagged or ask your own question.