[Linux] .bashrc vs .bash_profile
.bashrc: profile for non-login shells
ex. use terminal
.bash_profile: profile for login shells
ex. use local console, ssh
most people create .bash_profile the way as the below:
(1)
if [-f ~/.bashrc];
then
source ~/.bashrc
fi
(2)
or create a symbolic link to ~/.bashrc
ex. use terminal
.bash_profile: profile for login shells
ex. use local console, ssh
most people create .bash_profile the way as the below:
(1)
if [-f ~/.bashrc];
then
source ~/.bashrc
fi
(2)
or create a symbolic link to ~/.bashrc
Comments
Post a Comment