Sunday, February 8, 2015

.profile,.bash_profile and .bashrc

.profile

.profile is for things that are not specifically related to Bash, like environment variables PATH and friends, and should be available anytime.

For example, .profile should also be loaded when starting a graphical desktop session.

.bash_profile


.bash_profile is for making sure that both the things in .profile and .bashrc are loaded for login shells.

.bashrc

.bashrc is for the configuring the interactive Bash usage, like Bash aliases, setting your favorite editor, setting the Bash prompt, etc.

No comments:

Post a Comment