Brief
Detail about .bash_profile and .bashrc on CentOS
The differences of .bashrc and .bash_profile
When login to Linux, both $HOME/.bash_profile and $HOME/.bashrc are executed.
When a shell is run, an only .bahsrc is executed.
So if you want to run only when login, write the process to $HOME/.bash_profile
If you want to run every time bash is run, write the process to $HOME/.bashrc
No comments:
Post a Comment