# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
case "$-" in
*i*) echo This is an interactive bash shell
;;
*) echo this shell is noninteractive
;;
esac
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
case "$-" in
*i*) echo This is an interactive bash shell
;;
*) echo this shell is noninteractive
;;
esac
# User specific aliases and functions
So we can declude that the sequece of running is:
/etc/profile---->~/.bash_profile----->~/.bashrc----->~/etc/bashrc------>~/.bash_logout