Linux › Section M · User environments › Topic M.2
Startup file order, defaults, and pitfalls
Bash can read four different personal startup files, and which ones it reads depends on how the shell was started. Getting the order right is the difference between a setting that always works and one that mysteriously vanishes over SSH.
In this topic
- Why order matters
- Login shells
- Non-login and non-interactive shells
- The consequence: put everything in .bashrc
- Worked example: watching the order
- Testing what kind of shell you are in
- Other shells: tcsh and zsh
- Default user settings
- Worked example: an SSH copy that breaks
- Common mistakes to avoid
- Key takeaways
This topic is part of Wuanberri Pro. Checking your access…
