[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

Comments

Popular posts from this blog

股票評價(Stock Valuation) - 股利折現模型

openwrt feed的使用

How to convert Markdown into HTML