.bashrc vs. .bash_profile

Dennis Kaarsemaker dennis at kaarsemaker.net
Fri Jul 15 05:22:04 UTC 2005

On vr, 2005-07-15 at 01:05 -0400, Matthew S-H wrote:

> What is the difference?  Under what situations does it read one over  
> the other?

.bash_profile is sourced for login shells (where you need to enter a
password) and .bashrc for the rest. So .bash_profile should contain
thing only to be done once per session and .bashrc should contain things
to be done for every terminal you open.
Dennis K.
  - Linux for human beings: http://www.ubuntulinux.org
  - Linux voor normale mensen: http://www.ubuntulinux.nl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050715/1f2d2714/attachment.pgp>

More information about the ubuntu-users mailing list