This blog moved to medium->https://medium.com/@cocoamaemae

Wednesday, October 11, 2017

The difference of .bash_profile, .bashrc

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

Front End Development Tools

TaskRunner Tool executing multiple tasks by only one execution. Tasks are like CSS preprocessor, Transpire, Module Bundler, etc... e.g. ...