4.20.2015

What is meaning of bashrc?

bashrc : Bourne Again Shell shell run control

It contains all configurations of the bash shell where it loads before terminal opens for the execution of the commands.

When started as an interactive login shell

Bash reads and executes /etc/profile (if it exists). (Often this file calls /etc/bash.bashrc.)

After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile in that order, and reads and executes the first one that exists and is readable.
When a login shell exits

Bash reads and executes ~/.bash_logout (if it exists).
When started as an interactive shell (but not a login shell)

Bash reads and executes ~/.bashrc (if it exists). This may be inhibited by using the --norc option. The --rcfile file option forces Bash to read and execute commands from file instead of ~/.bashrc.







0 comments:

Post a Comment