1
skyahead 2012-06-20 04:45:14 +08:00
The main difference is that /etc/bashrc is not automatically read under any circumstance. The only way it gets included (say in ~/.bashrc), is if it's referenced in your ~/.bashrc file with something like:
if [ -f /etc/bashrc ] ; then . /etc/bashrc fi /etc/profile is read automatically only if you are loginning in. Stole from: http://www.linuxquestions.org/questions/linux-general-1/etc-profile-v-s-etc-bashrc-273992/#post1403475 |