As the title suggests I am asking about the main differences between .bashrc and /etc/profile. What I know is that .bashrc is a shell script that runs on login(I guess). And I know /etc/profile runs on ssh login or terminal login I also guess. Could someone please steer me in the right direction here?
Ubuntu – the difference between /etc/profile and .bashrc
bashbashrc
Related Question
- Ubuntu – Root’s .bashrc not executing on sudo -i
- Ubuntu – Difference between sh file.sh and file.sh
- Ubuntu – Why is /etc/profile not invoked for non-login shells
- Ubuntu – Creating new user, inconsistent bash prompt
- Ubuntu – What’s the difference between .bashrc and /etc/bash.bashrc
- Ubuntu – Difference between “xargs” and command substitution
- Ubuntu – What’s the difference between “history -w” and the action of closing a shell session
- Ubuntu Desktop: Why the .profile script is executed in an interactive non-login shell
Best Answer
I think this answer sums it up nicely:
From man bash:
Invocation
[...]
[...]